* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
    overflow-x: hidden;
}
.info-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.info-content h1 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.info-content h2 {
     color: #2c3e50;
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.info-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

.info-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Main Header Styles */
.main-header {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    color: white;
    padding: 20px 0;
    margin-bottom: 5px;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
    background-color: transparent;
}

/* Logo text styling */
.logo-text {
    font-size: 2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    color: white; /* Main text stays white */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Depth effect */
}

/* Gradient effect on 'Wheel.com' */
.logo-text span {
    background: linear-gradient(to right, #ffffff, #ffffff, #ff007f, #ffb6c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-shadow: none; /* Keeps text crisp */
    letter-spacing: 0.8px; /* Smooth readability */
}



.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
}

.nav-item a:hover {
    color: #FBBC05;
}

.header-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 20px;
    fill: #f8f9fa;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: 500px;
}

.wheel-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%);
    padding: 20px;
    position: relative;
    overflow: visible;
    min-height: 560px;
}

.side-panel {
    width: 320px;
    background-color: white;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 10;
    overflow: hidden;
    height: 100%;
}

.tab-header {
    display: flex;
    background-color: #f1f3f4;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    flex: 1;
    text-align: center;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #ffffff;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    margin: 5px;
   
}

.tab-btn.active {
    color: #ffffff;
    border-bottom-color: #4285f4;
}

.tab-content {
    flex: 1;
    overflow: hidden;
    display: none;
    flex-direction: column;
    height: 100%;
}

.tab-content.active {
    display: flex;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 5;
}

.wheel-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.wheel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: auto;
    flex-shrink: 0;
}

.wheel {
    position: relative;
    width: 500px;
    height: 500px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.wheel:hover {
    transform: scale(1.02);
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.2));
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    cursor: pointer;
    border-radius: 50%;
}

.wheel-pointer {
    position: absolute;
    top: 50%;
    right: -21px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 30px solid #b19999;
    z-index: 10;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.3));
}
.controls {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    bottom: 0;
    width: 100%;
    padding-bottom: 10px;
}

button {
    padding: 10px 10px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

button i {
    font-size: 18px;
}

.btn-danger {
    background-color: #ea4335;
}

.btn-danger:hover {
    background-color: #d33426;
}

.btn-success {
    background-color: #34A853;
}

.btn-success:hover {
    background-color: #2d9249;
}

button.muted {
    background-color: #9aa0a6;
}

button.muted:hover {
    background-color: #80868b;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.entries-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
}

.count-badge {
    background-color: #4285f4;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.name-input-container {
    position: relative;
    margin-bottom: 15px;
}

.name-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dfe1e5;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.name-input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 1px 6px rgba(66, 133, 244, 0.2);
}

.name-input::placeholder {
    color: #9aa0a6;
}

.input-hint {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0a6;
    font-size: 12px;
    background-color: #f1f3f4;
    padding: 2px 8px;
    border-radius: 4px;
    pointer-events: none;
}

.names-list {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    max-height: 50vh;
    overflow-y: auto;
}

.name-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background-color: #fff;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 4px solid;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.name-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.name-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.name-text {
    flex: 1;
    font-size: 15px;
    color: #202124;
}

.name-remove {
    background-color: transparent;
    color: #9aa0a6;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 5px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: none;
}

.name-remove:hover {
    background-color: rgba(218, 220, 224, 0.5);
    color: #ea4335;
    box-shadow: none;
    transform: none;
}

.winner-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    padding: 0;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalAppear 0.4s ease-out;
    transform: scale(1);
}

@keyframes modalAppear {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-title {
    background-color: #4285f4;
    color: white;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    position: relative;
}

.modal-body {
    padding: 30px 20px;
}

.winner-name {
    font-size: 48px;
    margin: 20px 0;
    color: #202124;
    font-weight: bold;
    word-break: break-word;
}

.close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: none;
    box-shadow: none;
}

.modal-buttons {
    padding: 0 20px 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.confetti {
    position: fixed;
    width: 10px;
    height: 15px;
    background-color: #ff0;
    animation: fall linear forwards;
    z-index: 99;
}

@keyframes fall {
    to {
        transform: translateY(105vh) rotate(720deg);
    }
}

.spin-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 2;
    color: white;
    font-weight: bold;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    text-transform: uppercase;
}

.actions-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.action-button {
    padding: 8px 12px;
    font-size: 14px;
    background: transparent;
    color: #4285f4;
    border: 1px solid #4285f4;
    box-shadow: none;
}

.action-button:hover {
    background: rgba(66, 133, 244, 0.1);
    transform: none;
    box-shadow: none;
}

.tools-section {
    margin-top: 15px;
}

.tools-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #5f6368;
}

.tools-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.results-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background-color: white;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.result-number {
    width: 28px;
    height: 28px;
    background-color: #4285f4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.result-name {
    flex: 1;
    font-weight: 500;
    word-break: break-word;
}

.result-time {
    color: #80868b;
    font-size: 13px;
    white-space: nowrap;
    margin-left: 5px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #80868b;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dadce0;
}

.bg-image-container {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.bg-image-title {
    font-weight: 500;
    margin-bottom: 10px;
    color: #5f6368;
}

.image-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.file-input-label {
    padding: 8px 12px;
    background-color: #4285f4;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.file-input {
    display: none;
}

.image-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #5f6368;
    min-width: 0;
}

.remove-image {
    padding: 5px;
    background: #ea4335;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: none;
}

.remove-image.active {
    display: block;
}

/* Footer Styles */
.main-footer {
    background: #333333;
    color: white;
    padding: 30px 0 20px;
    position: relative;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo-icon {
    font-size: 18px;
    margin-right: 10px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: bold;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
    max-width: 300px;
}

.footer-right {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4285F4;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.wheel-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.wheel-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    cursor: pointer;
    transition: color 0.2s;
}

.wheel-title:hover {
    color: #4285f4;
}

.wheel-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    word-break: break-word;
}

.edit-title-btn {
    position: absolute;
    right: -30px;
    top: 5px;
    background-color: transparent;
    color: #4285f4;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    box-shadow: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.wheel-title-container:hover .edit-title-btn {
    opacity: 1;
}

.edit-title-btn:hover {
    transform: scale(1.1);
    background-color: rgba(66, 133, 244, 0.1);
    box-shadow: none;
}

.title-edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

textarea.name-input {
    height: 80px;
    resize: vertical;
}

/* Improved Responsive Design */
/* Large tablets and desktops */
@media (max-width: 1200px) {
    .wheel {
        width: 450px;
        height: 450px;
    }
    
    .side-panel {
        width: 300px;
    }
}

/* Tablets and small laptops */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        height: auto;
    }
    
    .wheel-container {
        order: 2;
        min-height: 460px;
        padding: 15px 10px;
    }
    
    .wheel {
        width: 400px;
        height: 400px;
        margin: 20px auto;
    }
    
    .side-panel {
        width: 100%;
        height: auto;
        max-height: 50vh;
        order: 1;
    }
    
    .header {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .names-list {
        max-height: 30vh;
    }
    
    .wheel-pointer {
        right: -20px;
         border-top: 12px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 30px solid #b19999;
    }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 15px;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
    }
    
    .wheel {
        width: 350px;
        height: 350px;
    }
    
    .controls {
        gap: 8px;
    }
    
    .controls button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .winner-name {
        font-size: 36px;
    }
    
    .wheel-title {
        font-size: 20px;
    }
    
    .edit-title-btn {
        opacity: 0.8;
        right: -25px;
    }
    
    .actions-toolbar {
        justify-content: center;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .wheel {
        width: 280px;
        height: 280px;
    }
    
    .wheel-container {
        min-height: 380px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .controls button {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }
    
    .winner-name {
        font-size: 28px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-title {
        font-size: 20px;
        padding: 15px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .wheel-title-container {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .wheel-description {
        text-align: center;
    }
    
    .edit-title-btn {
        position: static;
        margin-top: 5px;
        opacity: 1;
    }
    
    .footer-links {
        width: 50%;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .tab-btn {
        
        font-size: 14px;
        margin: 5px;
    }
    
    .wheel-pointer {
        right: -15px;
        border-top: 12px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 30px solid #b19999;
    }
    
    .panel-content {
        padding: 10px;
    }
}

/* Very small mobile phones */
@media (max-width: 375px) {
    .wheel {
        width: 240px;
        height: 240px;
    }
    
    .wheel-container {
        min-height: 320px;
        padding: 10px 5px;
    }
    
    .nav-item a {
        font-size: 14px;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .winner-name {
        font-size: 24px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Additional accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .wheel:hover {
        transform: none;
    }
    
    .name-item:hover {
        transform: none;
    }
    
    button:hover {
        transform: none;
    }
    
    .modal-content {
        animation: none;
    }
}