/* ================================================================
   SHWE NGWE - COMPLETE STYLESHEET
   ================================================================
   Table of Contents:
   1. Reset & Base Styles
   2. Color Variables
   3. Header Styles
   4. Navigation Styles
   5. Viewer Count Styles
   6. Advertising Banner
   7. Ad Card with Mini View
   8. Ad Description with Expand/Collapse
   9. Mini View Styles
   10. Navigation Arrows & Dots
   11. Ad Popup Modal
   12. Image Popup Modal
   13. Gallery Section
   14. Date Pagination Styles
   15. Empty Date State Styles
   16. Dashboard Styles (For dashboard.html only)
   17. Stats Cards
   18. Table Styles (Gold Background)
   19. Pagination
   20. Modal (Add/Edit)
   21. Form Styles
   22. Buttons
   23. Footer Styles
   24. Google AdSense Styles
   25. Responsive Design
   26. Utility Classes
   27. Scrollbar & Selection
   ================================================================ */

/* ================================================================
   1. RESET & BASE STYLES
   ================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--gold-bg);
    color: var(--silver-light);
    min-height: 100vh;
}

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

/* ================================================================
   2. COLOR VARIABLES
   ================================================================ */
:root {
    --gold-primary: #D4AF37;
    --gold-light: #F5D76E;
    --gold-dark: #B8960F;
    --gold-gradient: linear-gradient(135deg, #D4AF37, #F5D76E, #D4AF37);
    --gold-gradient-dark: linear-gradient(135deg, #B8960F, #D4AF37, #B8960F);
    --gold-bg: #0f0c06;
    --gold-bg-light: #1a1408;
    --gold-bg-card: #0f0c06;
    --silver-primary: #C0C0C0;
    --silver-light: #E8E8E8;
    --silver-dark: #A0A0A0;
    --dark-bg: #1a1a1a;
    --dark-bg-light: #2d2d2d;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
}

/* ================================================================
   3. HEADER STYLES
   ================================================================ */
header {
    background: var(--gold-bg-light);
    color: var(--text-light);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(212, 175, 55, 0.2);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 2px solid var(--gold-primary);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

.logo img {
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.logo span {
    font-size: 24px;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.logo span::after {
    content: '✨';
    font-size: 16px;
    -webkit-text-fill-color: initial;
    margin-left: 5px;
}

/* ================================================================
   4. NAVIGATION STYLES
   ================================================================ */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
    display: block;
    position: relative;
}

nav ul li a:hover {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

nav ul li a::before {
    content: '✦';
    margin-right: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

nav ul li a:hover::before {
    opacity: 1;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--gold-bg-light);
    min-width: 150px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
    z-index: 1000;
    border: 1px solid var(--gold-primary);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    padding: 10px 15px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.dropdown-menu li a:hover {
    background: var(--gold-gradient);
    color: var(--dark-bg);
}

.dropdown-menu li a.active {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    font-weight: 700;
}

/* ================================================================
   5. VIEWER COUNT STYLES
   ================================================================ */
#viewer-count {
    background: var(--gold-bg-light);
    padding: 10px 0;
    border-bottom: 1px solid var(--gold-primary);
    border-top: 1px solid var(--gold-primary);
}

.viewer-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.viewer-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--silver-light);
}

.viewer-stat .stat-icon {
    font-size: 18px;
}

.viewer-stat .stat-label {
    font-size: 12px;
    color: var(--silver-dark);
}

.viewer-stat .stat-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-primary);
    min-width: 30px;
    text-align: center;
}

/* ================================================================
   6. ADVERTISING BANNER
   ================================================================ */
#advertising-banner {
    background: var(--gold-bg-light);
    padding: 30px 0;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--gold-primary);
    border-top: 3px solid var(--gold-primary);
}

#advertising-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    animation: shimmerRotate 20s linear infinite;
}

@keyframes shimmerRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ad-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.2);
    background: var(--gold-bg-card);
    border: 1px solid var(--gold-primary);
}

.ad-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    min-height: 180px;
}

/* ================================================================
   7. AD CARD WITH MINI VIEW
   ================================================================ */
.ad-card {
    flex: 0 0 100%;
    padding: 20px 25px;
    background: var(--gold-bg-card);
    border: none;
    border-radius: 0;
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
}

.ad-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

.ad-text {
    flex: 1;
    min-width: 0;
}

.ad-text h3 {
    color: var(--gold-primary);
    margin-bottom: 6px;
    font-size: 18px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.ad-text small {
    display: block;
    margin-top: 4px;
    color: var(--silver-dark);
    font-size: 11px;
}

.ad-mini-view {
    flex-shrink: 0;
    width: 130px;
    height: 85px;
    margin-top: 4px;
}

/* ================================================================
   8. AD DESCRIPTION WITH EXPAND/COLLAPSE
   ================================================================ */
.ad-description-wrapper {
    position: relative;
    margin-bottom: 4px;
}

.ad-description {
    color: var(--silver-light);
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.ad-description.collapsed {
    max-height: 67px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.ad-description.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, var(--gold-bg-card));
    pointer-events: none;
}

.ad-description.expanded {
    max-height: 1000px;
    display: block;
    -webkit-line-clamp: unset;
}

.toggle-description-btn {
    background: none;
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 0;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 2px;
}

.toggle-description-btn:hover {
    color: var(--gold-light);
    transform: translateX(2px);
}

/* ================================================================
   9. MINI VIEW STYLES
   ================================================================ */
.mini-view {
    width: 130px;
    height: 85px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid var(--gold-primary);
    transition: all 0.3s;
    background: var(--gold-bg);
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.mini-view:hover {
    transform: scale(1.05);
    border-color: var(--gold-light);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.mini-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-view .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid var(--gold-primary);
    transition: all 0.3s;
}

.mini-view:hover .play-button {
    background: rgba(212, 175, 55, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: var(--gold-light);
}

.mini-view .mini-label {
    position: absolute;
    bottom: 4px;
    right: 6px;
    background: rgba(0,0,0,0.85);
    color: var(--gold-primary);
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid var(--gold-primary);
}

.mini-view.youtube-mini { background: #000; }
.mini-view.image-mini { background: #f0f0f0; }
.mini-view.video-mini { background: #000; }

.mini-view.facebook-mini .facebook-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f0fe, #d4e4f7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1877f2;
}

.mini-view.website-mini .website-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
}

/* ================================================================
   10. NAVIGATION ARROWS & DOTS
   ================================================================ */
.ad-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-arrow:hover {
    background: var(--gold-primary);
    color: var(--dark-bg);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.ad-arrow-left { left: 10px; }
.ad-arrow-right { right: 10px; }

.ad-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 8px;
    background: var(--gold-bg-card);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.ad-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--silver-dark);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.ad-dot:hover {
    background: var(--gold-light);
    transform: scale(1.2);
}

.ad-dot.active {
    background: var(--gold-primary);
    border-color: var(--gold-light);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

/* ================================================================
   11. AD POPUP MODAL
   ================================================================ */
.ad-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ad-popup-modal .popup-content {
    background: white;
    max-width: 550px;
    width: 100%;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
    border: 2px solid var(--gold-primary);
}

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

.ad-popup-modal .popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.ad-popup-modal .popup-close:hover {
    color: #333;
}

.ad-popup-modal .popup-content h2 {
    color: var(--gold-primary);
    margin-bottom: 15px;
    padding-right: 30px;
}

.ad-popup-modal .popup-content p {
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 15px;
}

.popup-link-section {
    margin-top: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.popup-link-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.popup-link-icon { font-size: 20px; }
.popup-link-type {
    color: #666;
    font-size: 12px;
    background: #e0e0e0;
    padding: 2px 10px;
    border-radius: 10px;
}
.popup-link-label {
    color: #999;
    font-size: 12px;
    margin-left: auto;
}

.popup-mini-view {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--gold-primary);
    transition: all 0.3s;
    max-width: 300px;
    margin: 0 auto;
}

.popup-mini-view:hover {
    transform: scale(1.02);
    border-color: var(--gold-light);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.popup-mini-view .mini-view {
    width: 100%;
    height: 180px;
    border: none;
    border-radius: 0;
}

.popup-mini-view .mini-view:hover { transform: none; }

.ad-popup-modal .popup-content .popup-meta {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 14px;
}

.ad-popup-modal .popup-content .popup-meta div {
    margin-top: 5px;
}

/* ================================================================
   12. IMAGE POPUP MODAL
   ================================================================ */
.image-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    cursor: pointer;
}

.image-popup-modal .image-container {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.image-popup-modal .image-container img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    animation: zoomIn 0.3s ease;
    border: 2px solid var(--gold-primary);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-popup-modal .image-info {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    padding: 10px;
}

.image-popup-modal .image-info span {
    background: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--gold-primary);
}

.image-popup-modal .popup-close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10002;
    font-family: Arial, sans-serif;
}

.image-popup-modal .popup-close-btn:hover {
    transform: scale(1.2);
    color: var(--gold-primary);
}

/* ================================================================
   13. GALLERY SECTION
   ================================================================ */
#gallery-section {
    padding: 0 0 40px;
}

#gallery-title {
    display: none;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
    transition: all 0.3s;
    background: var(--gold-bg-light);
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 2px solid var(--gold-primary);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
    z-index: 1;
    border-color: var(--gold-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8) saturate(1.2);
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 40px;
    background: rgba(212, 175, 55, 0.9);
    color: var(--dark-bg);
    padding: 15px 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gallery-item .date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.85);
    color: var(--gold-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(5px);
    pointer-events: none;
    transition: opacity 0.3s;
    border: 1px solid var(--gold-primary);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--gold-bg) 25%, var(--gold-bg-light) 50%, var(--gold-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: -1;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.gallery-item img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.gallery-item img.loaded {
    opacity: 1;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: var(--gold-primary);
}

/* ================================================================
   14. DATE PAGINATION STYLES (ALWAYS SHOW)
   ================================================================ */
.date-pagination {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 5px 0;
    gap: 15px;
    flex-wrap: wrap;
}

.date-pagination .date-info {
    color: var(--gold-primary);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.date-pagination .btn {
    min-width: 120px;
}

.date-pagination .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.date-pagination.active {
    display: flex !important;
}

/* ================================================================
   15. EMPTY DATE STATE STYLES
   ================================================================ */
.loading-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--gold-bg-light);
    border-radius: 12px;
    border: 2px dashed var(--gold-primary);
    margin: 20px 0;
}

.loading-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.loading-empty .empty-title {
    font-size: 18px;
    color: var(--silver-dark);
}

.loading-empty .empty-date {
    font-size: 14px;
    color: var(--silver-dark);
    opacity: 0.7;
    margin-top: 8px;
}

.loading-empty .empty-hint {
    margin-top: 15px;
    font-size: 13px;
    color: var(--silver-dark);
    opacity: 0.5;
}

/* ================================================================
   16. DASHBOARD STYLES (For dashboard.html only)
   ================================================================ */
.dashboard-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 700;
    padding: 8px 20px;
    border: 2px solid var(--gold-primary);
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.dashboard-link:hover {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.back-link {
    color: var(--silver-primary);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.back-link:hover {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

#dashboard {
    padding: 20px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-header h2 {
    color: var(--gold-primary);
    position: relative;
    display: inline-block;
}

.dashboard-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.dashboard-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ================================================================
   17. STATS CARDS
   ================================================================ */
.stats-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--gold-bg-light);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    flex: 1;
    min-width: 150px;
    border-left: 4px solid var(--gold-primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--silver-dark);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-top: 5px;
}

.stat-card.active { border-left-color: #28a745; }
.stat-card.active .stat-value { color: #28a745; }
.stat-card.inactive { border-left-color: #dc3545; }
.stat-card.inactive .stat-value { color: #dc3545; }
.stat-card.expiring { border-left-color: #17a2b8; }
.stat-card.expiring .stat-value { color: #17a2b8; }

/* ================================================================
   18. TABLE STYLES (Gold Background)
   ================================================================ */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#search-input {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--gold-primary);
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
    background: var(--gold-bg);
    color: var(--silver-light);
}

#search-input:focus {
    outline: none;
    border-color: var(--gold-light);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

#search-input::placeholder {
    color: var(--silver-dark);
}

.table-container {
    overflow-x: auto;
    background: var(--gold-bg);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.2);
    border: 2px solid var(--gold-primary);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: var(--gold-bg-card);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: var(--gold-bg-light);
    border-bottom: 3px solid var(--gold-primary);
}

th {
    color: var(--gold-primary);
    padding: 14px 12px;
    text-align: left;
    position: sticky;
    top: 0;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gold-primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

th::before {
    content: '✦ ';
    color: var(--gold-primary);
}

tbody tr {
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    transition: background 0.3s;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(212, 175, 55, 0.15);
}

tbody tr:nth-child(even) {
    background: rgba(212, 175, 55, 0.05);
}

tbody tr:nth-child(even):hover {
    background: rgba(212, 175, 55, 0.18);
}

td {
    padding: 12px;
    color: var(--silver-light);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

td a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 0.3s;
}

td a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.status-badge.inactive {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

table {
    border: 1px solid var(--gold-primary);
}

/* ================================================================
   19. PAGINATION
   ================================================================ */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-container .info {
    color: var(--silver-dark);
    font-size: 14px;
}

.pagination-container .controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pagination-container .controls .page-info {
    padding: 8px 15px;
    background: var(--gold-bg);
    border-radius: 5px;
    border: 2px solid var(--gold-primary);
    font-size: 14px;
    color: var(--gold-primary);
    font-weight: 600;
}

.pagination-container .controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================================================================
   20. MODAL (Add/Edit)
   ================================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    overflow-y: auto;
}

.modal-content {
    background: var(--gold-bg-light);
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.25);
}

.modal-content h3 {
    color: var(--gold-primary);
    margin-bottom: 20px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--gold-primary);
    transition: all 0.3s;
}

.close:hover {
    color: var(--gold-light);
    transform: rotate(90deg);
}

/* ================================================================
   21. FORM STYLES
   ================================================================ */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--silver-light);
}

.form-group label .required {
    color: #dc3545;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--gold-primary);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--gold-bg);
    color: var(--silver-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-light);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--silver-dark);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
    accent-color: var(--gold-primary);
}

.form-group small {
    color: var(--silver-dark);
    font-size: 11px;
    display: block;
    margin-top: 3px;
}

/* ================================================================
   22. BUTTONS
   ================================================================ */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: var(--gold-bg);
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
}

.btn-secondary:hover {
    background: var(--gold-primary);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

/* ================================================================
   23. FOOTER STYLES
   ================================================================ */
footer {
    background: var(--gold-bg-light);
    color: var(--silver-dark);
    padding: 20px 0;
    margin-top: 40px;
    border-top: 2px solid var(--gold-primary);
    text-align: center;
}

footer p {
    margin-bottom: 5px;
    color: var(--silver-dark);
}

footer p:first-child {
    color: var(--gold-primary);
    font-size: 16px;
}

footer p:last-child {
    font-size: 12px;
    color: var(--silver-dark);
    opacity: 0.7;
}

footer a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 10px;
}

footer a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* ================================================================
   24. GOOGLE ADSENSE STYLES
   ================================================================ */
.ad-container {
    padding: 15px 0;
    margin: 10px 0;
    background: var(--gold-bg-light);
    border-radius: 8px;
    border: 1px solid var(--gold-primary);
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.ad-container ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    min-width: 300px;
    min-height: 90px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

/* ================================================================
   25. RESPONSIVE DESIGN
   ================================================================ */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        justify-content: center;
        gap: 10px;
    }
    
    nav ul li a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .dropdown-menu {
        min-width: 120px;
    }
    
    .ad-content {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .ad-mini-view {
        width: 100%;
        height: 120px;
    }
    
    .mini-view {
        width: 100%;
        height: 120px;
    }
    
    .ad-card {
        padding: 15px 20px;
    }
    
    .ad-text h3 {
        font-size: 16px;
    }
    
    .ad-description {
        font-size: 13px;
    }
    
    .ad-description.collapsed {
        max-height: 58px;
        -webkit-line-clamp: 2;
    }
    
    .ad-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .date-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-pagination .btn {
        width: 100%;
        min-width: auto;
    }
    
    .date-pagination .date-info {
        font-size: 16px;
        order: -1;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
        padding: 15px 0;
    }
    
    .gallery-item {
        aspect-ratio: 3/4;
    }
    
    .loading-empty {
        padding: 40px 15px;
    }
    
    .loading-empty .empty-icon {
        font-size: 36px;
    }
    
    .loading-empty .empty-title {
        font-size: 15px;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: auto;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 20px;
        padding: 20px;
    }
    
    .ad-popup-modal .popup-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .ad-popup-modal .popup-content h2 {
        font-size: 18px;
    }
    
    .ad-popup-modal .popup-content p {
        font-size: 14px;
    }
    
    .ad-container {
        padding: 10px 0;
        min-height: 80px;
    }
    
    .ad-container ins.adsbygoogle {
        min-height: 60px;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .viewer-stats {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .viewer-stat .stat-number {
        font-size: 16px;
    }
    
    #advertising-banner {
        padding: 15px 0;
    }
    
    .ad-card {
        padding: 12px 15px;
        min-height: 150px;
    }
    
    .ad-mini-view {
        height: 100px;
    }
    
    .mini-view {
        height: 100px;
    }
    
    .ad-text h3 {
        font-size: 14px;
    }
    
    .ad-description {
        font-size: 12px;
    }
    
    .ad-description.collapsed {
        max-height: 52px;
        -webkit-line-clamp: 2;
    }
    
    .toggle-description-btn {
        font-size: 11px;
    }
    
    .ad-arrow {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .ad-arrow-left { left: 5px; }
    .ad-arrow-right { right: 5px; }
    
    .ad-dot {
        width: 8px;
        height: 8px;
    }
    
    .date-pagination .date-info {
        font-size: 14px;
    }
    
    .loading-empty {
        padding: 30px 10px;
    }
    
    .loading-empty .empty-icon {
        font-size: 28px;
    }
    
    .loading-empty .empty-title {
        font-size: 14px;
    }
    
    .loading-empty .empty-date {
        font-size: 12px;
    }
    
    .logo span {
        font-size: 18px;
    }
    
    .logo img {
        height: 30px;
    }
    
    nav ul {
        gap: 5px;
    }
    
    nav ul li a {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .dropdown-menu {
        min-width: 100px;
    }
    
    .dropdown-menu li a {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
        padding: 10px 0;
    }
    
    .gallery-item {
        aspect-ratio: 3/4;
        border-radius: 8px;
    }
    
    .gallery-item .date {
        font-size: 10px;
        padding: 3px 8px;
        bottom: 5px;
        right: 5px;
    }
    
    .gallery-item::after {
        font-size: 25px;
        padding: 10px 15px;
    }
    
    .popup-mini-view .mini-view {
        height: 120px;
    }
    
    .popup-link-section {
        padding: 10px;
    }
    
    .dashboard-header h2 {
        font-size: 18px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .table-container {
        font-size: 13px;
    }
    
    th, td {
        padding: 8px;
    }
    
    th {
        font-size: 12px;
    }
    
    .modal-content {
        padding: 15px;
        margin: 10px;
    }
    
    .loading {
        font-size: 14px;
        padding: 30px;
    }
    
    .ad-popup-modal .popup-content {
        padding: 15px;
    }
    
    .ad-popup-modal .popup-content h2 {
        font-size: 16px;
    }
    
    .ad-popup-modal .popup-content p {
        font-size: 13px;
    }
    
    .image-popup-modal .popup-close-btn {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
    
    .pagination-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-container .controls {
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .ad-card {
        padding: 10px 12px;
        min-height: 130px;
    }
    
    .ad-mini-view {
        height: 80px;
    }
    
    .mini-view {
        height: 80px;
    }
    
    .ad-text h3 {
        font-size: 12px;
    }
    
    .ad-description {
        font-size: 11px;
    }
    
    .ad-description.collapsed {
        max-height: 46px;
        -webkit-line-clamp: 2;
    }
    
    .toggle-description-btn {
        font-size: 10px;
    }
    
    .ad-arrow {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .gallery-item {
        aspect-ratio: 1/1;
    }
    
    nav ul li a {
        font-size: 10px;
        padding: 4px 6px;
    }
}

/* ================================================================
   26. UTILITY CLASSES
   ================================================================ */
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.hidden { display: none; }

/* ================================================================
   27. SCROLLBAR & SELECTION
   ================================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gold-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gold-gradient);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-gradient-dark);
}

::selection {
    background: var(--gold-primary);
    color: var(--dark-bg);
}

::-moz-selection {
    background: var(--gold-primary);
    color: var(--dark-bg);
}