/* ACCO Admin - Shared Styles */
/* Matching public page aesthetic with admin-specific elements */

:root {
    --primary: #ff4da6;
    --primary-light: #ff6eb7;
    --primary-dark: #e6007a;
    --secondary: #2141f3;
    --secondary-light: #4562ff;
    --secondary-dark: #1531c9;
    --background: #0a0a0a;
    --surface: #1E1E1E;
    --text: #FFFFFF;
    --text-secondary: #B3B3B3;
    --accent: #ff4da6;
    --surface-light: #2a2a2a;
    --success: #00ff88;
    --warning: #ffaa00;
    --error: #ff4757;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    background-image: url('/images/apppreviews/website_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    min-height: 100vh;
}

/* iOS Safari fix for background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
        position: relative;
    }

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--background);
        background-image: url('/images/apppreviews/website_background.jpg');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        z-index: -1;
    }
}

/* Hide scrollbar */
::-webkit-scrollbar {
    display: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Matching public header exactly */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    height: 80px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-top: 5px;
}

.home-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
}

.admin-action-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.cta-outer {
    display: flex;
    align-items: center;
}

.cta-button {
    color: var(--text);
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: rgba(255, 77, 166, 0.3);
    height: 35px;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
    position: relative;
    z-index: 10;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: rgba(255, 77, 166, 0.5);
    box-shadow: 0 5px 15px rgba(255, 77, 166, 0.3);
}

/* Main Content Area */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
    padding-bottom: 60px;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Card Styles - Matching public pages */
.card {
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 77, 166, 0.3);
    box-shadow: 0 20px 40px rgba(255, 77, 166, 0.15);
}

/* Page Title */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    margin-top: 60px;
}

.stat-card {
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 77, 166, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(255, 77, 166, 0.3);
}

.stat-icon i {
    color: white;
    font-size: 28px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.stat-change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    margin-top: 10px;
    display: inline-block;
}

.stat-change.positive {
    background-color: rgba(0, 255, 136, 0.1);
    color: var(--success);
}

.stat-change.negative {
    background-color: rgba(255, 71, 87, 0.1);
    color: var(--error);
}

.stat-change.neutral {
    background-color: rgba(255, 170, 0, 0.1);
    color: var(--warning);
}

/* Tables */
.table-container {
    overflow-x: auto;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    background-color: rgba(255, 77, 166, 0.1);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: 0.2px;
    line-height: 1.5;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Loading States */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    margin-top: 20px;
    color: var(--text-secondary);
}

/* Error/No Data States */
.no-data, .error-message {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-secondary);
}

.no-data i, .error-message i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
    color: var(--primary);
}

.no-data h2, .error-message h2 {
    color: var(--text);
    margin-bottom: 10px;
}

/* Buttons */
.btn-primary {
    color: var(--primary);
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: rgba(255, 77, 166, 0.3);
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    position: relative;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: rgba(255, 77, 166, 0.5);
    box-shadow: 0 5px 15px rgba(255, 77, 166, 0.3);
}

.btn-secondary {
    color: var(--primary);
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: rgba(255, 77, 166, 0.3);
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    position: relative;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: rgba(255, 77, 166, 0.5);
    box-shadow: 0 5px 15px rgba(255, 77, 166, 0.3);
}

.btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-secondary:disabled:hover {
    background-color: rgba(255, 77, 166, 0.3);
    box-shadow: 0 5px 15px rgba(255, 77, 166, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-buttons {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: linear-gradient(135deg, rgba(30, 30, 30, 0.98) 0%, rgba(42, 42, 42, 0.98) 100%);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-buttons.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
        margin-bottom: 30px;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .admin-action-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }

    .cta-outer {
        width: 100%;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .main-content {
        padding-top: 80px;
    }

    .page-container {
        padding: 0 15px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

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

    .card {
        padding: 20px;
    }

    th, td {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .card {
        padding: 15px;
    }
}
