/* Enhanced Admin Styles */
@import url('notifications.css');

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-box h2 {
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
}

.login-box input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-box input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.login-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-hint {
    margin-top: 1rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Admin Panel Layout */
.admin-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.admin-header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.admin-header h1 {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-size: 1.8rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.user-role {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.user-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.logout-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.4);
}

/* Main Layout */
.admin-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.admin-sidebar.collapsed {
    width: 60px;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

.nav-menu {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-item {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.3), rgba(78, 205, 196, 0.3));
    color: white;
    border-right: 3px solid #4ecdc4;
}

.nav-item .nav-icon {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.nav-item .nav-text {
    transition: opacity 0.3s ease;
}

.admin-sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.nav-section {
    margin: 1rem 0;
}

.nav-section-title {
    padding: 0.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.admin-sidebar.collapsed .nav-section-title {
    display: none;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ecdc4;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.admin-sidebar.collapsed .status-text {
    display: none;
}

/* Main Content */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.content-container {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.1);
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.loading-spinner.large {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

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

.loading-text {
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 200;
    }
    
    .admin-sidebar.open {
        left: 0;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 150;
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .admin-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-left {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .content-container {
        padding: 1rem;
    }
    
    .user-info {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 2rem;
        margin: 1rem;
    }
    
    .admin-header h1 {
        font-size: 1.3rem;
    }
    
    .header-right {
        flex-direction: column;
        gap: 0.5rem;
    }
}/* User
 Management Styles */
.user-manager-container {
    padding: 1rem;
}

.user-controls {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.table {
    margin-bottom: 0;
    color: white;
}

.table th {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 1rem;
    font-weight: 600;
    color: #4ecdc4;
}

.table td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sortable {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.sortable:hover {
    color: #ff6b6b;
}

.sortable i {
    margin-left: 0.5rem;
    opacity: 0.6;
}

.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.badge-danger {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    color: white;
}

.badge-warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    color: #212529;
}

.badge-secondary {
    background: linear-gradient(45deg, #6c757d, #adb5bd);
    color: white;
}

.badge-primary {
    background: linear-gradient(45deg, #007bff, #6610f2);
    color: white;
}

.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-group .btn {
    margin-right: 0.25rem;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

.dropdown-menu {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.dropdown-item {
    color: white;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #4ecdc4;
}

.dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
}

.empty-state-icon {
    opacity: 0.5;
}

.pagination {
    justify-content: center;
}

.page-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    margin: 0 0.125rem;
    border-radius: 5px;
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4ecdc4;
    color: #4ecdc4;
}

.page-item.active .page-link {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border-color: #4ecdc4;
    color: white;
}

.page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.pagination-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Session viewer styles */
.session-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.session-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Password reset info styles */
.password-reset-info .input-group {
    margin-bottom: 1rem;
}

.password-reset-info .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.password-reset-info .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.password-reset-info .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4ecdc4;
    color: #4ecdc4;
}

/* Activity viewer styles */
.user-activity-viewer .table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.user-activity-viewer .table th {
    background: rgba(255, 255, 255, 0.1);
}

/* Loading states */
.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4ecdc4;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
}

.loading-spinner.large {
    width: 3rem;
    height: 3rem;
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form enhancements */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    color: #4ecdc4;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-controls .row {
        margin: 0;
    }
    
    .user-controls .col-md-2,
    .user-controls .col-md-4 {
        padding: 0.25rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
        margin-right: 0;
    }
}/* 
Category Selection Styles */
.category-selection-container {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
}

.category-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.category-checkbox-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.category-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4ecdc4;
}

.category-checkbox-label {
    color: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 0;
}

.selected-categories {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.selected-categories-label {
    font-size: 0.85rem;
    color: #4ecdc4;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.selected-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selected-category-tag {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.no-categories-selected {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-size: 0.85rem;
}

/* Upload form enhancements */
.upload-form .form-group {
    margin-bottom: 1.5rem;
}

.upload-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4ecdc4;
    font-weight: 500;
}

.upload-form .form-help {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

/* Category Analytics Wrapper Styles */
.category-analytics-wrapper {
    padding: 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    flex: 1;
}

.page-title {
    margin: 0 0 0.5rem 0;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 600;
}

.page-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.analytics-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.error-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-state h3 {
    margin: 0 0 1rem 0;
    color: #ff6b6b;
    font-size: 1.5rem;
}

.error-state p {
    margin: 0 0 2rem 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Interactive Element Spacing Fixes */
.admin-panel .btn + .btn,
.admin-panel button + button {
    margin-left: var(--spacing-interactive-min);
}

.admin-panel .btn + *:not(.btn):not(button),
.admin-panel button + *:not(.btn):not(button) {
    margin-left: var(--spacing-interactive-safe);
}

.admin-panel * + .btn,
.admin-panel * + button {
    margin-left: var(--spacing-interactive-safe);
}

/* Ensure proper spacing in flex containers */
.admin-panel .d-flex > .btn,
.admin-panel .d-flex > button {
    margin-left: 0; /* Reset margin in flex containers */
}

.admin-panel .d-flex {
    gap: var(--spacing-interactive-min);
}

/* Header and navigation spacing */
.admin-header .header-actions {
    gap: var(--spacing-interactive-safe);
}

.admin-header .notification-btn,
.admin-header .logout-btn {
    margin-left: var(--spacing-interactive-safe);
}

/* Sidebar navigation spacing */
.nav-menu .nav-item {
    margin-bottom: var(--spacing-xs);
}

/* Form element spacing */
.admin-panel .form-group + .form-group {
    margin-top: var(--spacing-md);
}

.admin-panel .form-group .btn {
    margin-top: var(--spacing-sm);
}

/* Card header spacing */
.admin-panel .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-interactive-safe);
    flex-wrap: wrap;
}

.admin-panel .card-header .btn,
.admin-panel .card-header button {
    flex-shrink: 0;
    margin-left: var(--spacing-interactive-safe);
}

/* Responsive adjustments for category analytics */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
        gap: var(--spacing-interactive-safe);
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    /* Enhanced mobile spacing for interactive elements */
    .admin-panel .card-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }
    
    .admin-panel .card-header .btn,
    .admin-panel .card-header button {
        margin-left: 0;
        align-self: center;
        min-height: var(--touch-target-min);
        min-width: var(--touch-target-min);
    }
    
    /* Ensure all buttons have proper touch targets on mobile */
    .admin-panel .btn,
    .admin-panel button {
        min-height: var(--touch-target-min);
        min-width: var(--touch-target-min);
    }
}/* Moda
l Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.modal-overlay.high-priority {
    z-index: 20000;
}

.modal {
    background: rgba(30, 30, 50, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 1;
    animation: modalSlideIn 0.3s ease forwards;
    color: #fff;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    padding: 2rem;
    color: white;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
}

.modal-footer .btn {
    min-width: 100px;
}

/* Form styles in modals */
.modal .form-group {
    margin-bottom: 1.5rem;
}

.modal .form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.modal .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal .form-control:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.modal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.modal select.form-control {
    cursor: pointer;
}

.modal .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal .form-check-input {
    width: auto;
    margin: 0;
}

.modal .form-check-label {
    margin: 0;
    cursor: pointer;
}

/* Progress modal styles */
.modal .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.modal .loading-spinner.large {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

.modal .progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.modal .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.modal .progress-text {
    text-align: center;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

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

@keyframes modalSlideIn {
    from { 
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

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

/* Responsive modal */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}/
* Photo Categories Styling */
.photo-categories-list {
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-badge {
    display: inline-block;
    margin: 0.2rem 0.3rem 0.2rem 0;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: default;
}

.category-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.badge-info.category-badge {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.badge-secondary.category-badge {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Photo card enhancements for categories */
.photo-card .card-body {
    padding: 1rem;
}

.photo-card .photo-categories-list strong {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* List view category styling */
.photo-list-container .category-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    margin: 0.1rem 0.2rem 0.1rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .photo-categories-list {
        margin: 0.5rem 0;
        padding: 0.3rem 0;
    }
    
    .category-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        margin: 0.1rem 0.2rem 0.1rem 0;
    }
}