/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #3498db;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: #3498db;
}

/* Profile Link in Nav */
.profile-menu .profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3498db;
}

.nav-profile-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #34495e;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3498db;
}

.nav-profile-placeholder svg {
    width: 18px;
    height: 18px;
    color: #ecf0f1;
}

.profile-link:hover .nav-profile-pic,
.profile-link:hover .nav-profile-placeholder {
    border-color: #5dade2;
    transform: scale(1.05);
    transition: all 0.3s;
}

/* Social Icons in Nav */
.social-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s;
}

.instagram-icon a {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-icon a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(188, 24, 136, 0.4);
}

.whatsapp-icon a {
    background: #25D366;
}

.whatsapp-icon a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 180px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.slideshow-tip {
    font-size: 1rem;
    margin-top: 1rem;
    opacity: 0.9;
}

.slideshow-tip a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.slideshow-tip a:hover {
    opacity: 0.8;
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-overlay .container {
    text-align: center;
    color: white;
}

.slide-overlay h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-overlay p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Slideshow Controls */
.slide-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.slide-control:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slide-control.prev {
    left: 20px;
}

.slide-control.next {
    right: 20px;
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: white;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive Slideshow */
@media (max-width: 768px) {
    .hero-slideshow {
        height: 350px;
    }
    
    .slide-overlay h1 {
        font-size: 2rem;
    }
    
    .slide-overlay p {
        font-size: 1rem;
    }
    
    .slide-control {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

.auth-box h1 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
}

.auth-link a {
    color: #3498db;
    text-decoration: none;
}

.qr-code-container {
    text-align: center;
    margin: 2rem 0;
}

.qr-code-container img {
    max-width: 250px;
}

.secret-key {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    text-align: center;
}

.secret-key code {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.category-card a {
    text-decoration: none;
    color: #2c3e50;
}

.category-card h3 {
    margin-bottom: 0.5rem;
    color: #3498db;
}

/* Appointment CTA Section */
.appointment-cta-section {
    margin: 60px 0;
}

.appointment-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.appointment-content {
    flex: 1;
    color: white;
}

.appointment-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.appointment-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
}

.appointment-action {
    flex-shrink: 0;
}

.btn-appointment {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: white;
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-appointment:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.btn-appointment svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .appointment-cta {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    
    .appointment-content {
        margin-bottom: 25px;
    }
    
    .appointment-content h2 {
        font-size: 1.5rem;
    }
    
    .appointment-content p {
        font-size: 1rem;
    }
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay h4 {
    margin: 0;
}

/* Photo Action Buttons (Slideshow & Public Toggle) */
.photo-action-buttons {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
    pointer-events: none;
}

.slideshow-toggle-form,
.public-toggle-form {
    margin: 0;
    display: inline-block;
    pointer-events: all;
}

.slideshow-btn,
.public-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slideshow-btn:hover,
.public-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.slideshow-btn.active {
    background: #f39c12;
    color: white;
}

.public-btn.active {
    background: #27ae60;
    color: white;
}

.slideshow-help {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}


/* Photo Detail */
.photo-detail,
.video-detail {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.photo-main img,
.video-main video {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    background: #000;
}

.photo-info,
.video-info {
    padding: 2rem;
}

.photo-info h1,
.video-info h1 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.category-tag a {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.description {
    color: #555;
    margin: 1rem 0;
}

.meta {
    color: #999;
    font-size: 0.9rem;
}

/* Profile */
.profile-header {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.profile-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.success-text {
    color: #27ae60;
    font-weight: 600;
}

.warning-text {
    color: #e67e22;
    font-weight: 600;
}

/* Admin */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-nav {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #2c3e50;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background-color: #3498db;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
}

.admin-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.admin-table thead {
    background-color: #2c3e50;
    color: white;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
}

.admin-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.admin-table tbody tr:hover {
    background-color: #e9ecef;
}

.admin-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    max-width: 600px;
}

.settings-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Video List */
.video-list {
    display: grid;
    gap: 1rem;
}

.video-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.video-item:hover {
    transform: translateX(5px);
}

.video-item a {
    text-decoration: none;
    color: #2c3e50;
}

.video-item h4 {
    color: #3498db;
    margin-bottom: 0.5rem;
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Touch-friendly improvements for all devices */
@media (hover: none) and (pointer: coarse) {
    /* Improve touch targets - minimum 44x44px for accessibility */
    .btn,
    button,
    .nav-menu a,
    .filter-btn,
    .indicator,
    .slide-control {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Increase padding for better touch experience */
    .btn {
        padding: 0.875rem 1.75rem;
    }
    
    /* Remove hover effects on touch devices */
    .photo-item:hover {
        transform: none;
    }
    
    .category-card:hover {
        transform: none;
    }
}

/* Mobile Devices (Portrait and Landscape) - 320px to 767px */
@media (max-width: 767px) {
    /* Container and Layout */
    .container {
        padding: 0 15px;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Navigation */
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #2c3e50;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        padding: 2rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
    }
    
    /* Flash Messages */
    .flash-messages {
        left: 10px;
        right: 10px;
        top: 60px;
        max-width: none;
    }
    
    .alert {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Hero Slideshow */
    .hero-slideshow {
        height: 300px;
    }
    
    .slide-overlay h1 {
        font-size: 1.5rem;
    }
    
    .slide-overlay p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .slide-control {
        font-size: 1.25rem;
        padding: 0.5rem 0.75rem;
    }
    
    .slide-control.prev {
        left: 5px;
    }
    
    .slide-control.next {
        right: 5px;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    
    /* Auth Pages */
    .auth-box {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .auth-box h1 {
        font-size: 1.5rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Category Grid */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Photo Grid */
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    
    .photo-item img {
        height: 140px;
    }
    
    /* Photo Detail */
    .photo-main img,
    .video-main video {
        max-height: 400px;
    }
    
    .photo-info,
    .video-info {
        padding: 1rem;
    }
    
    .photo-info h1,
    .video-info h1 {
        font-size: 1.5rem;
    }
    
    /* Profile */
    .profile-header,
    .profile-section {
        padding: 1rem;
    }
    
    /* Admin */
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-nav a {
        width: 100%;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .admin-section {
        padding: 1rem;
    }
    
    /* Tables - Make scrollable */
    .admin-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        min-width: 600px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Filter Section */
    .filter-controls {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-actions button,
    .filter-actions a {
        width: 100%;
    }
    
    /* Appointment CTA */
    .appointment-cta {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .appointment-content {
        margin-bottom: 1.5rem;
    }
    
    .appointment-content h2 {
        font-size: 1.5rem;
    }
    
    .appointment-content p {
        font-size: 0.95rem;
    }
    
    .btn-appointment {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Video List */
    .video-item {
        padding: 1rem;
    }
    
    /* Empty State */
    .empty-state {
        padding: 2rem 1rem;
    }
    
    /* Social Icons - Stack vertically on very small screens */
    .social-icon a {
        width: 32px;
        height: 32px;
    }
    
    .social-icon svg {
        width: 16px;
        height: 16px;
    }
    
    /* Appointments Grid */
    .appointments-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .admin-appointment-card {
        padding: 1rem;
    }
    
    .appointment-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .appointment-actions form {
        width: 100%;
    }
    
    .appointment-actions button,
    .appointment-actions select {
        width: 100%;
    }
    
    /* Filter Buttons */
    .filter-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 120px;
        text-align: center;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-left,
    .footer-right {
        width: 100%;
    }
    
    /* QR Code */
    .qr-code-container img {
        max-width: 200px;
    }
    
    /* Profile Picture Upload */
    .profile-picture-upload {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Reduce margins and padding */
    .main-content {
        padding: 1rem 0;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Stats Card */
    .stat-number {
        font-size: 2rem;
    }
}

/* Mobile Landscape - 480px to 767px */
@media (min-width: 480px) and (max-width: 767px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .photo-item img {
        height: 180px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .filter-btn {
        flex: 1 1 calc(33.333% - 0.5rem);
    }
}

/* Tablet Devices (Portrait) - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
    /* Container */
    .container {
        padding: 0 30px;
    }
    
    /* Navigation - Keep horizontal but reduce gaps */
    .nav-menu {
        gap: 1rem;
        font-size: 0.95rem;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Hero Slideshow */
    .hero-slideshow {
        height: 400px;
    }
    
    .slide-overlay h1 {
        font-size: 2.25rem;
    }
    
    /* Photo Grid */
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
    }
    
    .photo-item img {
        height: 200px;
    }
    
    /* Category Grid */
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Admin Tables */
    .admin-table th,
    .admin-table td {
        padding: 0.875rem;
    }
    
    /* Filter Controls */
    .filter-controls {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        grid-column: 1 / -1;
        justify-content: center;
    }
    
    /* Appointment CTA */
    .appointment-cta {
        padding: 3rem;
    }
    
    .appointment-content h2 {
        font-size: 1.75rem;
    }
}

/* Tablet Devices (Landscape) - 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    /* Photo Grid */
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Privacy Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-public {
    background-color: #28a745;
    color: white;
}

.badge-private {
    background-color: #ffc107;
    color: #333;
}

.badge-approved {
    background-color: #28a745;
    color: white;
}

.badge-pending {
    background-color: #ffc107;
    color: #333;
}

.badge-admin {
    background-color: #007bff;
    color: white;
}

/* Video Placeholder */
.video-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.video-placeholder span {
    font-size: 3rem;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    margin: 2rem 0;
}

.empty-state h2 {
    color: #666;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #999;
}

/* Download Protection */
.no-download {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.no-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
/* Filter Section */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.filter-controls {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr auto;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 0.9rem;
}

.filter-group label i {
    margin-right: 0.25rem;
}

.filter-group input,
.filter-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Results Summary */
.results-summary {
    background: #ecf0f1;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    text-align: center;
}

.results-summary p {
    margin: 0;
    color: #2c3e50;
    font-weight: 500;
}

/* File Info Badges */
.file-info {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
}

.file-type-badge {
    background-color: #3498db;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
}

.file-size,
.file-date {
    background-color: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

/* Responsive Filters */
@media (max-width: 992px) {
    .filter-controls {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .filter-controls {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions button,
    .filter-actions a {
        width: 100%;
    }
}