/* ====================================
   ADMIN PANEL - TAQUERÍA GUADALAJARA
   Ultra Professional Mobile First Design
==================================== */

:root {
    --primary-orange: #e85d04;
    --primary-red: #dc2f02;
    --primary-yellow: #ffba08;
    --primary-green: #22c55e;
    --primary-blue: #3b82f6;
    --primary-purple: #8b5cf6;
    --dark-bg: #0a0a0f;
    --card-bg: #14141f;
    --card-lighter: #1e1e2d;
    --card-border: #2a2a3d;
    --text-primary: #ffffff;
    --text-secondary: #8b8ba3;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --glow-orange: 0 0 20px rgba(232, 93, 4, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    font-size: 16px;
}

/* ====================================
   LOGIN SCREEN - Ultra Professional
==================================== */

.login-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.login-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(232, 93, 4, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
        linear-gradient(135deg, #0a0a0f 0%, #14141f 100%);
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 1; }
    100% { opacity: 0.8; }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: rgba(20, 20, 31, 0.95);
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow), var(--glow-orange);
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(232, 93, 4, 0.3);
}

.login-logo i {
    font-size: 2.5rem;
    color: white;
}

.login-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 5px;
}

.login-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card-lighter);
    border-radius: 14px;
    border: 2px solid var(--card-border);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.15);
}

.input-icon {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.input-wrapper input {
    flex: 1;
    padding: 18px 10px 18px 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--text-secondary);
}

.toggle-password {
    padding: 0 18px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--primary-orange);
}

.login-error {
    color: #ef4444;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
    font-weight: 500;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232, 93, 4, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn i {
    font-size: 1.3rem;
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    padding: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--text-primary);
    background: var(--card-lighter);
}

/* ====================================
   ADMIN PANEL
==================================== */

.admin-panel {
    min-height: 100vh;
    padding-bottom: 85px;
}

/* ====================================
   MOBILE HEADER
==================================== */

.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 100;
    border-bottom: 2px solid var(--primary-orange);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo i {
    font-size: 1.2rem;
    color: white;
}

.header-info {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.header-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.logout-btn {
    width: 44px;
    height: 44px;
    background: var(--card-lighter);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

/* ====================================
   MAIN CONTENT
==================================== */

.main-content {
    padding: 80px 15px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.section-title i {
    color: var(--primary-orange);
    font-size: 1.3rem;
}

/* ====================================
   STATS GRID
==================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-card.sales .stat-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.stat-card.orders .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.stat-card.items .stat-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.stat-card.average .stat-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ====================================
   CARDS
==================================== */

.chart-card, .recent-card, .ranking-card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--card-border);
}

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

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-header h3 i {
    color: var(--primary-orange);
    font-size: 1rem;
}

.see-all-btn {
    background: transparent;
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.see-all-btn:hover {
    background: var(--primary-orange);
    color: white;
}

.chart-container {
    position: relative;
    height: 220px;
}

/* ====================================
   ORDERS LIST
==================================== */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: var(--card-lighter);
    border-radius: 14px;
    padding: 16px;
    border-left: 4px solid var(--primary-orange);
    transition: all 0.2s ease;
}

.order-card:hover {
    transform: translateX(3px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.order-id {
    font-weight: 700;
    color: var(--primary-orange);
    font-size: 0.95rem;
}

.order-customer {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-customer i {
    color: var(--primary-orange);
    font-size: 0.9rem;
}

.order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.order-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-meta i {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.order-items-preview {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-green);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.action-btn.complete {
    background: var(--primary-green);
    color: white;
}

.action-btn.complete:hover {
    background: #16a34a;
}

.action-btn.cancel {
    background: #ef4444;
    color: white;
}

.action-btn.cancel:hover {
    background: #dc2626;
}

/* ====================================
   FILTERS BAR
==================================== */

.filters-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filters-bar select, .filters-bar input {
    flex: 1;
    padding: 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.filters-bar select:focus, .filters-bar input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

/* ====================================
   REPORTS SECTION
==================================== */

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.report-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--card-border);
    flex-wrap: wrap;
}

.report-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.report-icon.daily {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.report-icon.weekly {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.report-icon.monthly {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.report-info {
    flex: 1;
    min-width: 120px;
}

.report-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.report-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.report-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.report-actions input {
    width: 140px;
    padding: 12px;
    background: var(--card-lighter);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}

.report-actions button {
    width: 48px;
    height: 48px;
    background: var(--primary-orange);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-actions button:hover {
    background: var(--primary-red);
    transform: scale(1.05);
}

/* Report Preview */
.report-preview {
    display: none;
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    margin-top: 20px;
}

.report-preview.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.report-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--card-lighter);
    border-bottom: 1px solid var(--card-border);
}

.report-preview-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-orange);
}

.preview-actions {
    display: flex;
    gap: 10px;
}

.preview-actions button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.print-btn {
    background: var(--primary-blue);
    color: white;
}

.close-btn {
    background: var(--card-border);
    color: var(--text-secondary);
}

.close-btn:hover {
    background: var(--primary-red);
    color: white;
}

.report-content {
    padding: 20px;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.summary-item {
    text-align: center;
    background: var(--card-lighter);
    padding: 18px 12px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.summary-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item .value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-green);
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.report-table th, .report-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.report-table th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====================================
   ANALYTICS SECTION
==================================== */

.date-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.date-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.date-input label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.date-input input {
    padding: 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.date-input input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

/* Ranking */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--card-lighter);
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.ranking-position {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.ranking-position.gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.ranking-position.silver {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: white;
}

.ranking-position.bronze {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
}

.ranking-position.normal {
    background: var(--card-border);
    color: var(--text-secondary);
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-category {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ranking-stats {
    text-align: right;
    flex-shrink: 0;
}

.ranking-qty {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.ranking-revenue {
    font-size: 0.85rem;
    color: var(--primary-green);
    font-weight: 600;
}

/* ====================================
   SETTINGS SECTION
==================================== */

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.settings-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--card-border);
    flex-wrap: wrap;
}

.settings-item.info {
    flex-direction: column;
    align-items: flex-start;
}

.settings-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.settings-icon.export {
    background: var(--primary-purple);
}

.settings-icon.warning {
    background: #f59e0b;
}

.settings-icon.danger {
    background: #ef4444;
}

.settings-icon.info-icon {
    background: var(--primary-green);
}

.settings-info {
    flex: 1;
    min-width: 120px;
}

.settings-info.full {
    width: 100%;
}

.settings-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.settings-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.settings-action {
    display: flex;
    gap: 10px;
    align-items: center;
}

.settings-action input {
    width: 100px;
    padding: 12px;
    background: var(--card-lighter);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.settings-action button {
    padding: 12px 18px;
    background: var(--primary-orange);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-action button:hover {
    transform: scale(1.05);
}

.export-btns button {
    background: var(--primary-purple);
}

.warning-btn {
    background: #f59e0b !important;
}

.danger-btn {
    background: #ef4444 !important;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    width: 100%;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-row strong {
    color: var(--text-primary);
    font-weight: 600;
}

.back-to-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    background: var(--card-bg);
    border: 2px solid var(--primary-orange);
    border-radius: 14px;
    color: var(--primary-orange);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-menu-btn:hover {
    background: var(--primary-orange);
    color: white;
}

/* ====================================
   BOTTOM NAVIGATION
==================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: var(--card-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 2px solid var(--primary-orange);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.nav-btn i {
    font-size: 1.3rem;
}

.nav-btn span {
    font-size: 0.7rem;
    font-weight: 500;
}

.nav-btn.active {
    color: var(--primary-orange);
}

.nav-btn.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 0 0 3px 3px;
}

.nav-btn .badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--primary-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ====================================
   TOAST NOTIFICATION
==================================== */

.toast {
    position: fixed;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-green);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 200;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ====================================
   EMPTY STATE
==================================== */

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 18px;
    opacity: 0.5;
    color: var(--primary-orange);
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ====================================
   PRINT STYLES
==================================== */

@media print {
    body {
        background: white;
        color: black;
        padding: 0;
    }
    
    .mobile-header, .bottom-nav, .preview-actions, .filters-bar, .login-screen {
        display: none !important;
    }
    
    .admin-panel {
        padding-bottom: 0;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .content-section {
        display: none !important;
    }
    
    #reports-section {
        display: block !important;
    }
    
    .reports-list {
        display: none;
    }
    
    .report-preview {
        display: block !important;
        border: none;
        box-shadow: none;
    }
    
    .report-preview-header {
        background: none;
        border-bottom: 2px solid black;
    }
    
    .summary-item, .ranking-item {
        background: #f5f5f5;
    }
}

/* ====================================
   RESPONSIVE ADJUSTMENTS
==================================== */

@media (min-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .stat-info {
        align-items: center;
    }
}

@media (max-width: 380px) {
    .stat-value {
        font-size: 1.3rem;
    }
    
    .report-summary {
        grid-template-columns: 1fr;
    }
    
    .report-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .report-actions input {
        flex: 1;
    }
    
    .settings-action {
        width: 100%;
        margin-top: 10px;
    }
    
    .settings-action input {
        flex: 1;
    }
    
    .nav-btn span {
        display: none;
    }
    
    .nav-btn i {
        font-size: 1.5rem;
    }
}
