/* Custom CSS for PNG Photo Website */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Modern Hero Section */
.hero-section-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Container */
.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 20px 60px 20px 30px;
    border: none;
    outline: none;
    font-size: 1.1rem;
    background: transparent;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #0056b3;
    transform: translateY(-50%) scale(1.05);
}

.search-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-label {
    font-weight: 600;
    margin-right: 10px;
}

.suggestion-tag {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.suggestion-tag:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
}

/* Most Downloaded Section */
.most-downloaded-section {
    background: #f8f9fa;
}

.loading-spinner {
    padding: 40px 0;
}

/* Mobile Responsive Design */
/* Mobile Top Bar */
.mobile-top-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-brand {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

.mobile-brand:hover {
    color: white;
    text-decoration: none;
}

/* Modern Mobile Bottom Navigation - Sticky & Enhanced */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 12px 0 16px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px 20px 0 0;
}

.mobile-bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin-top: 8px;
}

.mobile-bottom-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
}

.nav-item:hover {
    color: #007bff;
    text-decoration: none;
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.nav-item.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.15);
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.nav-item i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-item.active i {
    transform: scale(1.1);
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-label {
    font-weight: 600;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
    min-width: 250px;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-success .toast-content i {
    color: #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-error .toast-content i {
    color: #dc3545;
}

.toast-content i {
    font-size: 1.2rem;
}

.toast-content span {
    font-weight: 500;
    color: #333;
}

/* Mobile Bottom Navigation Animation */
@keyframes navItemBounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

.nav-item:active {
    animation: navItemBounce 0.3s ease;
}

/* Enhanced Mobile Top Bar - Sticky & Modern */
.mobile-top-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-top-bar.scrolled {
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.mobile-brand {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.mobile-brand:hover {
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

/* Desktop Navigation Enhancements - Sticky & Modern */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(0, 123, 255, 0.95) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.navbar:not(.scrolled) {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.navbar-brand {
    font-weight: 700;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Modern Scroll Indicators */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 9999;
    transition: transform 0.3s ease;
}

/* Enhanced Mobile Navigation Animations */
@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-top-bar {
    animation: slideInFromTop 0.5s ease-out;
}

.mobile-bottom-nav {
    animation: slideInFromBottom 0.5s ease-out;
}

/* Modern Button Hover Effects */
.nav-item {
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover::before {
    left: 100%;
}

/* Enhanced Glass Morphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Modern Shadow Effects */
.navbar, .mobile-top-bar, .mobile-bottom-nav {
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar.scrolled, .mobile-top-bar.scrolled, .mobile-bottom-nav.scrolled {
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Mobile Offcanvas */
.offcanvas {
    width: 280px !important;
}

.offcanvas-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.offcanvas-body {
    padding: 20px;
}

/* Mobile Hero Section Adjustments */
@media (max-width: 991.98px) {
    .hero-section-modern {
        padding: 40px 0;
        margin-top: 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .search-input {
        padding: 15px 50px 15px 20px;
        font-size: 1rem;
    }
    
    .search-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .suggestion-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Add bottom padding for mobile bottom nav */
    body {
        padding-bottom: 70px;
    }
    
    /* Mobile image cards */
    .image-container {
        height: 150px;
    }
    
    
    /* Mobile section titles */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .search-input {
        padding: 12px 45px 12px 15px;
        font-size: 0.9rem;
    }
    
    .search-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .suggestion-tag {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .bottom-nav-item {
        padding: 6px 2px;
    }
    
    .bottom-nav-item i {
        font-size: 1rem;
    }
    
    .bottom-nav-item span {
        font-size: 0.65rem;
    }
    
    /* Mobile image grid adjustments */
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .image-container {
        height: 120px;
    }
    
}

/* Mobile-specific utilities */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 992px) {
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
}

/* Mobile-friendly buttons */
@media (max-width: 767.98px) {
    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .overlay-buttons .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
}

/* Mobile card adjustments */
@media (max-width: 767.98px) {
    .card-body {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
}

/* Blog Styles */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image-container img {
    transform: scale(1.05);
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-overlay {
    opacity: 1;
}

.blog-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.blog-meta i {
    width: 12px;
}

.blog-categories .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-post-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #333;
}

.blog-post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 0.8rem 0;
    color: #333;
}

.blog-post-content p {
    margin-bottom: 1.2rem;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.blog-featured-image {
    margin-bottom: 2rem;
}

.blog-featured-image img {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.share-buttons .btn {
    margin-right: 8px;
    margin-bottom: 8px;
}

.author-info {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.author-avatar {
    color: #6c757d;
}

/* GDPR Cookie Notice */
.gdpr-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 0;
    z-index: 9999;
    border-top: 3px solid #007bff;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gdpr-notice p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.gdpr-buttons {
    margin-top: 10px;
}

@media (min-width: 768px) {
    .gdpr-buttons {
        margin-top: 0;
    }
}

/* Adjust body padding for fixed navigation */
body {
    padding-top: 80px; /* Account for fixed desktop navbar */
}

body.mobile-view {
    padding-top: 70px; /* Account for fixed mobile top bar */
    padding-bottom: 80px; /* Account for fixed mobile bottom nav */
}

/* Adjust body padding when GDPR notice is shown */
body.gdpr-notice-shown {
    padding-bottom: 160px; /* GDPR notice + bottom nav */
}

body.mobile-view.gdpr-notice-shown {
    padding-bottom: 160px; /* GDPR notice + bottom nav */
}

/* Mobile Blog Styles */
@media (max-width: 767.98px) {
    .blog-post-title {
        font-size: 1.8rem;
    }
    
    .blog-post-content {
        font-size: 1rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-post-content h3 {
        font-size: 1.2rem;
    }
    
    .blog-image-container {
        height: 150px;
    }
    
    .blog-meta {
        font-size: 0.8rem;
    }
    
    .share-buttons .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Download Timer Styles */
#downloadTimer {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.timer-progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.timer-progress .progress-bar {
    transition: width 1s linear;
}

/* Download Button States */
.download-btn {
    position: relative;
    overflow: hidden;
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.download-btn.loading {
    background: linear-gradient(45deg, #6c757d, #495057);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mobile Download Timer */
@media (max-width: 767.98px) {
    #downloadTimer .alert {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .timer-progress {
        height: 6px;
    }
    
    .download-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

/* Image Cards */
.image-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover .image-container img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.overlay-buttons {
    display: flex;
    gap: 10px;
}

.overlay-buttons .btn {
    border-radius: 25px;
    padding: 8px 16px;
    font-weight: 500;
}

/* Admin Panel Styles */
.admin-sidebar {
    min-height: 100vh;
    background: #343a40;
    padding: 0;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: #495057;
    color: #fff;
}

.admin-sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
}

.admin-content {
    padding: 30px;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Table Styles */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table thead th {
    background: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #495057;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Image Upload Styles */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.upload-area.dragover {
    border-color: var(--success-color);
    background: #d4edda;
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Advertisement Styles */
.ad-banner {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.ad-banner img {
    max-width: 100%;
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .image-container {
        height: 150px;
    }
    
    .admin-content {
        padding: 15px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Search Results */
.search-results {
    margin-top: 30px;
}

.search-result-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
}

/* Image View Modal */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Download Button */
.download-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* SEO and Analytics */
.seo-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.seo-preview h4 {
    color: #1a0dab;
    font-size: 18px;
    margin-bottom: 5px;
}

.seo-preview .url {
    color: #006621;
    font-size: 14px;
    margin-bottom: 5px;
}

.seo-preview .description {
    color: #545454;
    font-size: 14px;
    line-height: 1.4;
}

