/**
 * Visitor Tracking & Analytics Styles
 * 🔥 EPIC 3D GLASSMORPHISM WELCOME MODAL
 */

/* Welcome Modal - SIMPLE BLACK Background */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
    padding: 20px;
}

/* Remove all background animations */



.welcome-modal.active {
    opacity: 1;
    visibility: visible;
}

/* BLACK CARD - Golden border on hover - SMALLER SIZE */
.welcome-modal-content {
    position: relative;
    background: hsl(0, 0%, 12%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: default;
    z-index: 1;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.welcome-modal-content:hover {
    border-color: hsl(45, 100%, 72%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 206, 84, 0.3);
}







/* Mobile responsive - SIMPLE & COMPACT */
@media (max-width: 768px) {
    .welcome-modal {
        padding: 12px;
    }
    
    .welcome-modal-content {
        padding: 28px 24px;
        max-width: 90%;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .welcome-modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 30px;
    }

    .welcome-modal-content {
        padding: 24px 18px;
        border-radius: 12px;
        max-width: 100%;
    }
}

/* 🔥 BLACK CLOSE BUTTON - Golden border on hover - SMALLER */
.welcome-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: hsl(0, 0%, 12%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: hsl(0, 0%, 84%);
    font-size: 20px;
    z-index: 10;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.welcome-close ion-icon {
    pointer-events: none;
    font-size: 22px;
    color: hsl(0, 0%, 84%);
    transition: all 0.3s ease;
}

.welcome-close:hover {
    background: hsl(240, 2%, 16%);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 206, 84, 0.4);
    border-color: hsl(45, 100%, 71%);
    border-width: 3px;
}

.welcome-close:hover ion-icon {
    color: hsl(45, 100%, 72%);
    filter: drop-shadow(0 2px 8px rgba(255, 206, 84, 0.5));
}

@media (max-width: 768px) {
    .welcome-close {
        width: 34px;
        height: 34px;
        top: 14px;
        right: 14px;
    }
    
    .welcome-close ion-icon {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .welcome-close {
        width: 32px;
        height: 32px;
        top: 12px;
        right: 12px;
    }
    
    .welcome-close ion-icon {
        font-size: 18px;
    }
}

.welcome-close:active {
    transform: rotate(180deg) scale(0.95);
}

/* AVATAR IMAGE - Circle with golden border */
.welcome-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.welcome-modal-content:hover .welcome-icon img {
    border-color: hsl(45, 100%, 72%);
    box-shadow: 0 0 20px rgba(255, 206, 84, 0.4);
}

@media (max-width: 768px) {
    .welcome-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 14px;
    }
}

@media (max-width: 480px) {
    .welcome-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 12px;
    }
    
    .welcome-icon img {
        border-width: 2px;
    }
}

/* BLACK HEADING - Golden on hover - SMALLER */
.welcome-modal-content h2 {
    color: hsl(0, 0%, 90%);
    text-align: center;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.welcome-modal-content:hover h2 {
    color: hsl(45, 100%, 72%);
}

@media (max-width: 768px) {
    .welcome-modal-content h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .welcome-modal-content h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }
}

/* Subtitle text - BRIGHT - SMALLER */
.welcome-modal-content > p {
    color: hsl(0, 0%, 98%);
    text-align: center;
    margin-bottom: 22px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .welcome-modal-content > p {
        font-size: 14px;
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .welcome-modal-content > p {
        font-size: 13px;
        margin-bottom: 16px;
        line-height: 1.5;
    }
}

/* 🎨 FORM STYLING - GLASSMORPHISM - COMPACT */
.welcome-form .input-group {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.welcome-form label {
    display: block;
    color: hsl(0, 0%, 84%);
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.welcome-form .input-group:hover label,
.welcome-form .input-group:focus-within label {
    color: hsl(45, 100%, 72%);
}

.welcome-form label .optional {
    color: hsl(45, 54%, 58%);
    font-size: 13px;
    font-weight: 400;
    margin-left: 6px;
}

.welcome-form input {
    width: 100%;
    padding: 12px 14px;
    background: linear-gradient(to bottom right,
        hsla(240, 1%, 18%, 0.251) 0%,
        hsla(240, 2%, 11%, 0) 100%), hsl(240, 2%, 13%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: hsl(0, 0%, 100%);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.25s ease;
    outline: none;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.welcome-form input::placeholder {
    color: hsl(0, 0%, 70%);
}

.welcome-form input:focus {
    background: linear-gradient(135deg,
        hsla(45, 100%, 71%, 0.1) 0%,
        hsla(35, 100%, 68%, 0.05) 59.86%), hsl(240, 2%, 13%);
    border-color: hsl(45, 100%, 72%);
    box-shadow: 
        0 0 0 4px rgba(255, 206, 84, 0.2),
        0 8px 20px rgba(255, 206, 84, 0.3);
    transform: translateY(-2px);
}

.welcome-form input:hover {
    border-color: rgba(255, 206, 84, 0.3);
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 206, 84, 0.1);
}

@media (max-width: 768px) {
    .welcome-form label {
        font-size: 13px;
        margin-bottom: 7px;
    }
    
    .welcome-form input {
        padding: 11px 13px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .welcome-form .input-group {
        margin-bottom: 14px;
    }
    
    .welcome-form label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .welcome-form label .optional {
        font-size: 11px;
    }
    
    .welcome-form input {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* 🔥 BLACK BUTTONS with GOLDEN SIDE BORDERS - SMALLER */
.welcome-form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.welcome-form button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: hsl(240, 2%, 13%);
    color: hsl(0, 0%, 84%);
    border-left: 4px solid transparent;
}

/* Skip button - BLACK with GOLDEN left border on hover */
.welcome-form button[type="button"] {
    border-left-color: rgba(255, 206, 84, 0.3);
}

.welcome-form button[type="button"]:hover {
    background: hsl(240, 2%, 16%);
    color: hsl(45, 100%, 72%);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 206, 84, 0.2);
    border-left-color: hsl(45, 100%, 71%);
    border-left-width: 5px;
}

/* Submit button - BLACK with GOLDEN left border (thicker) */
.welcome-form button[type="submit"] {
    border-left-color: hsl(45, 100%, 71%);
    border-left-width: 4px;
    font-weight: 700;
    color: hsl(0, 0%, 98%);
}

.welcome-form button[type="submit"]:hover {
    background: hsl(240, 2%, 16%);
    color: hsl(45, 100%, 72%);
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 206, 84, 0.3),
        inset 0 0 30px rgba(255, 206, 84, 0.05);
    border-left-color: hsl(45, 100%, 72%);
    border-left-width: 6px;
}

.welcome-form button[type="submit"]:active,
.welcome-form button[type="button"]:active {
    transform: translateY(-1px) scale(0.98);
}

/* 🔒 Privacy notice - SMALLER */
.welcome-privacy {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.welcome-privacy p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.welcome-privacy ion-icon {
    font-size: 14px;
    color: rgba(0, 198, 255, 0.8);
}

@media (max-width: 768px) {
    .welcome-form-buttons {
        gap: 10px;
        margin-top: 18px;
    }
    
    .welcome-form button {
        padding: 11px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .welcome-form-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }
    
    .welcome-form button {
        width: 100%;
        padding: 10px 16px;
        font-size: 14px;
        letter-spacing: 0.3px;
    }
}

/* Privacy note styling */
.welcome-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

@media (max-width: 768px) {
    .welcome-privacy {
        margin-top: 14px;
        padding-top: 14px;
    }
    
    .welcome-privacy p {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .welcome-privacy {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .welcome-privacy p {
        font-size: 10px;
        gap: 5px;
    }
    
    .welcome-privacy ion-icon {
        font-size: 12px;
    }
}

.welcome-note ion-icon {
    font-size: 14px;
    color: rgba(0, 198, 255, 0.6);
}

/* Old styles have been replaced with new glassmorphism design above */


/* Thank you message */
.thank-you-message {
    text-align: center;
    padding: 20px 0;
}

.thank-you-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-message h2 {
    color: #4caf50;
    margin-bottom: 10px;
}

.thank-you-message p {
    color: #b8b8b8;
    margin-bottom: 24px;
}

/* Admin Sidebar Navigation */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, #1e1e1f 0%, #2a2a2d 100%);
    border-right: 1px solid #383838;
    padding: 24px 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid #383838;
}

.sidebar-header h2 {
    color: #ffce56;
    font-size: 24px;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: #b8b8b8;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item ion-icon {
    font-size: 24px;
}

.nav-item:hover {
    background: rgba(255, 206, 84, 0.1);
    color: #ffce56;
}

.nav-item.active {
    background: rgba(255, 206, 84, 0.15);
    color: #ffce56;
    border-right: 3px solid #ffce56;
}

.nav-item .badge {
    margin-left: auto;
    background: #ffce56;
    color: #1e1e1f;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Admin Content Wrapper (with sidebar) */
.admin-content-wrapper {
    margin-left: 250px;
    min-height: 100vh;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(135deg, #2a2a2d 0%, #1e1e1f 100%);
    border: 1px solid #383838;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: #ffce56;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}

.stat-info h3 {
    font-size: 32px;
    color: #ffce56;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.stat-info p {
    color: #b8b8b8;
    margin: 0;
    font-size: 14px;
}

/* Universal Viewers Card - Neon Light Effect */
.stat-card.universal-viewers {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid transparent;
}

.stat-card.universal-viewers::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            transparent 40%,
            rgba(0, 198, 255, 0.6) 45%,
            rgba(156, 39, 176, 0.6) 50%,
            rgba(0, 198, 255, 0.6) 55%,
            transparent 60%,
            transparent);
    animation: neonFlow 4s linear infinite;
}

.stat-card.universal-viewers::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(-45deg,
            transparent,
            transparent 40%,
            rgba(156, 39, 176, 0.5) 45%,
            rgba(0, 198, 255, 0.5) 50%,
            rgba(156, 39, 176, 0.5) 55%,
            transparent 60%,
            transparent);
    animation: neonFlow 4s linear infinite reverse;
    animation-delay: 2s;
}

.stat-card.universal-viewers>* {
    position: relative;
    z-index: 1;
}

.stat-card.universal-viewers:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 198, 255, 0.4),
        0 12px 32px rgba(156, 39, 176, 0.4);
    border-color: rgba(0, 198, 255, 0.8);
}

@keyframes neonFlow {
    0% {
        transform: rotate(0deg) translate(-50%, -50%);
    }

    100% {
        transform: rotate(360deg) translate(-50%, -50%);
    }
}

/* Visitors Table */
.table-container {
    background: linear-gradient(135deg, #2a2a2d 0%, #1e1e1f 100%);
    border: 1px solid #383838;
    border-radius: 16px;
    padding: 24px;
    overflow-x: auto;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.table-header h2 {
    color: #ffce56;
    margin: 0;
    font-size: 24px;
}

.visitors-table {
    width: 100%;
    border-collapse: collapse;
}

.visitors-table thead {
    background: rgba(255, 206, 84, 0.1);
}

.visitors-table th {
    text-align: left;
    padding: 12px 16px;
    color: #ffce56;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid #ffce56;
}

.visitors-table td {
    padding: 14px 16px;
    color: #b8b8b8;
    border-bottom: 1px solid #383838;
    font-size: 14px;
}

.visitors-table tr:hover td {
    background: rgba(255, 206, 84, 0.05);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-submitted {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-skipped {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 200px;
    }

    .admin-content-wrapper {
        margin-left: 200px;
    }

    .stats-overview {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .stat-info h3 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 70px;
        padding: 16px 0;
    }

    .sidebar-header {
        padding: 0 12px 16px;
    }

    .sidebar-header h2,
    .nav-item span,
    .nav-item .badge {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 14px 12px;
    }

    .nav-item ion-icon {
        font-size: 22px;
    }

    .admin-content-wrapper {
        margin-left: 70px;
        padding: 16px;
    }

    .stats-overview {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .stat-info h3 {
        font-size: 24px;
    }

    .stat-info p {
        font-size: 13px;
    }

    .table-container {
        padding: 16px;
        border-radius: 12px;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .table-header h2 {
        font-size: 20px;
    }

    /* Make table scrollable horizontally on mobile */
    .visitors-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .visitors-table thead,
    .visitors-table tbody,
    .visitors-table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .visitors-table th,
    .visitors-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .admin-sidebar {
        width: 60px;
    }

    .admin-content-wrapper {
        margin-left: 60px;
        padding: 12px;
    }

    .nav-item {
        padding: 12px 8px;
    }

    .nav-item ion-icon {
        font-size: 20px;
    }

    .stats-overview {
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .stat-info h3 {
        font-size: 22px;
    }

    .stat-info p {
        font-size: 12px;
    }

    .table-container {
        padding: 12px;
    }

    .table-header h2 {
        font-size: 18px;
    }

    .visitors-table th,
    .visitors-table td {
        padding: 8px;
        font-size: 12px;
    }

    .status-badge {
        padding: 3px 8px;
        font-size: 11px;
    }
}