/* Drone Fotogalerij - Hoofdstijlen */
:root {
    --primary-color: #469cdd;
    --primary-dark: #3a82b8;
    --primary-light: #5ba8e3;
    --secondary-color: #2d3748;
    --background-color: #f8fafc;
    --white: #ffffff;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --success: #48bb78;
    --success-dark: #38a169;
    --error: #e53e3e;
    --error-dark: #c53030;
    --warning: #ed8936;
    --info: #4299e1;
}

/* Reset en basis styling */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif; 
    background: var(--background-color);
    color: var(--secondary-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Header & Navigation */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: visible;
    min-height: auto;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    overflow: visible;
    min-height: auto;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    padding: 20px 0;
}

.logo-img {
    height: 50px;
    width: auto;
    vertical-align: middle;
    transition: opacity 0.3s ease;
}

.logo-img:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 25px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.1);
}

.nav-menu a.active {
    background: rgba(255,255,255,0.15);
}

.menu-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.nav-menu a[title] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

/* Main Content */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Admin Container */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1em;
    color: var(--gray-600);
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 10px;
}

.welcome-section h1 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-weight: 700;
}

.welcome-section p {
    font-size: 1.0em;
    color: var(--gray-600);
    text-align: center;
}

/* Gallery Header */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-300);
}

.gallery-header h2 {
    color: var(--primary-color);
    font-size: 1.8em;
    font-weight: 600;
}

.gallery-info {
    color: var(--gray-600);
    font-size: 0.95em;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(70, 156, 221, 0.3);
}

.btn-view {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: var(--white);
}

.btn-view:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.btn-download {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(70, 156, 221, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, var(--error) 0%, var(--error-dark) 100%);
    color: var(--white);
}

.btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.btn-cancel {
    background: var(--gray-300);
    color: var(--secondary-color);
}

.btn-cancel:hover {
    background: var(--gray-400);
}

.btn-confirm {
    background: linear-gradient(135deg, var(--error) 0%, var(--error-dark) 100%);
    color: var(--white);
}

.btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.btn-approve {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: var(--white);
}

.btn-approve:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.btn-reject {
    background: linear-gradient(135deg, var(--error) 0%, var(--error-dark) 100%);
    color: var(--white);
}

.btn-reject:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

/* Login Form */
.login-container { 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255,255,255,0.2);
}

.login-container .logo h1 { 
    color: var(--primary-color); 
    font-size: 1.8em; 
    font-weight: 600;
    margin-bottom: 8px;
}

.login-container .logo p { 
    color: var(--gray-600); 
    font-size: 0.9em;
}

.login-container .logo img {
    filter: brightness(1.2);
    display: block;
    margin: 0 auto 20px auto;
}

.btn-login { 
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover { 
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(70, 156, 221, 0.3);
}

.btn-upload {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(70, 156, 221, 0.3);
}

.btn-upload:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1em;
}

.form-group input[type="text"], 
.form-group input[type="password"],
.form-group input[type="file"],
.form-group select,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(70, 156, 221, 0.1);
}

/* Messages */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.95em;
}

.message.success {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-dark);
    border-left: 4px solid var(--success);
}

.message.error {
    background: rgba(229, 62, 62, 0.1);
    color: var(--error-dark);
    border-left: 4px solid var(--error);
}

.error { 
    color: var(--error);
    background: rgba(231, 76, 60, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    border-left: 4px solid var(--error);
}

.messages {
    margin-bottom: 30px;
}

/* Status Elements */
.status-pending {
    color: var(--error);
    font-size: 0.85em;
    background: rgba(229, 62, 62, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(229, 62, 62, 0.2);
}

.status-approved {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-dark);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
    text-align: center;
    border: 1px solid rgba(72, 187, 120, 0.2);
}

/* Cards */
.gallery-item, .photo-card, .user-section, .form-container, .upload-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-300);
    transition: all 0.3s ease;
}

.gallery-item:hover, .photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.upload-container {
    padding: 40px;
}

.form-container {
    padding: 40px;
}

/* Info Boxes */
.info-box, .cli-info, .security-tips {
    background: rgba(70, 156, 221, 0.1);
    border: 1px solid rgba(70, 156, 221, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.info-box h3, .cli-info h3, .security-tips h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.info-box p, .cli-info p, .security-tips p {
    color: var(--primary-dark);
    font-size: 0.95em;
    line-height: 1.5;
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    justify-items: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-300);
    text-align: center;
    width: 100%;
    max-width: 220px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.95em;
    font-weight: 500;
}

/* User Elements */
.user-avatar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.user-info h3, .users-list h3 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Project Overview */
.projects-overview {
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.projects-overview h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 600;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 6px;
    margin-bottom: 15px;
    justify-items: start;
    align-items: stretch;
}

.project-overview-card, .project-card {
    background: var(--white);
    border-radius: 4px;
    padding: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    border: 1px solid var(--gray-300);
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 180px;
}

.project-overview-card:hover, .project-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
}

.project-overview-card.inactive, .project-card.inactive {
    opacity: 0.7;
    border-color: var(--gray-400);
}

/* Project card specific styling */
.project-card.has-pending-payment {
    border-left: 4px solid var(--warning);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { border-left-color: var(--warning); }
    50% { border-left-color: #f6ad55; }
}

.project-card .pending-payment-badge {
    background: var(--warning);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    animation: pulse 2s infinite;
}

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

.project-card .project-stats {
    display: flex;
    gap: 2px;
    margin: 2px 0;
    flex-wrap: wrap;
}

.project-card .project-stats span {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    color: var(--gray-700);
    font-weight: 500;
}

.project-card .project-favorites-status {
    background: var(--gray-50);
    padding: 2px;
    border-radius: 2px;
    margin: 2px 0;
}

.project-card .favorites-indicator {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 1px;
}

.project-card .favorites-count {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--primary-color);
}

.project-card .favorites-count.at-limit {
    color: var(--error);
}

.project-card .limit-badge {
    background: var(--error);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
}

.project-card .available-badge {
    background: var(--success);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
}

.project-card .payment-option {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.project-card .extra-price-info {
    font-size: 0.7em;
    color: var(--gray-600);
}

.project-card .btn-payment {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: var(--white);
    padding: 2px 6px;
    font-size: 0.7em;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-card .btn-payment:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--gray-200);
}

.project-header h3 {
    color: var(--primary-color);
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.project-status {
    margin-left: 15px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.active {
    background: var(--success);
    color: var(--white);
}

.status-badge.inactive {
    background: var(--gray-400);
    color: var(--white);
}

.project-location {
    color: var(--gray-600);
    font-size: 0.75em;
    margin: 1px 0;
}

.project-description {
    color: var(--gray-700);
    font-size: 0.95em;
    line-height: 1.4;
    margin: 10px 0;
}

.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    margin: 6px 0;
    padding: 4px;
    background: var(--gray-50);
    border-radius: 3px;
}

.stat-mini {
    text-align: center;
    padding: 2px;
}

.stat-mini .stat-number {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1px;
}

.stat-mini .stat-label {
    color: var(--gray-600);
    font-size: 0.7em;
    font-weight: 500;
}

.project-settings {
    background: var(--gray-50);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 12px 0;
}

.setting-item {
    display: block;
    color: var(--gray-700);
    font-size: 0.9em;
}

.setting-item strong {
    color: var(--primary-color);
}

.project-actions {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 3px;
    align-items: stretch;
}

.project-actions .btn {
    flex: 1;
    min-width: 70px;
    padding: 4px 8px;
    font-size: 0.75em;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-projects {
    text-align: center;
    padding: 40px;
    background: var(--gray-50);
    border-radius: 15px;
    border: 2px dashed var(--gray-300);
}

.no-projects p {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* User Management */
.users-container {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-300);
    margin-top: 40px;
}

.users-container h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5em;
}

.user-card {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-300);
    transition: all 0.3s ease;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.user-card:last-child {
    margin-bottom: 0;
}

.user-card .user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-300);
}

.user-card .user-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.2em;
}

.user-card .user-info h4 {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-bottom: 5px;
}

.user-card .user-info p {
    color: var(--gray-600);
    font-size: 0.9em;
}

.current-user-badge {
    background: var(--info);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 10px;
}

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

.user-actions .btn {
    flex: 1;
    min-width: 120px;
}

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

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.users-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.user-section {
    padding: 30px;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-300);
}

.user-info h3 {
    font-size: 1.3em;
}

.user-info p {
    color: var(--gray-600);
    font-size: 0.95em;
}

/* Photo Management */
.photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.photo-item, .photo-card {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--gray-300);
    transition: all 0.3s ease;
}

.photo-item:hover, .photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.photo-preview {
    width: 100%;
    height: 150px;
    background: var(--gray-300);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-info {
    margin-bottom: 15px;
}

.photo-name {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9em;
    margin-bottom: 5px;
    word-break: break-word;
}

.photo-date {
    color: var(--gray-600);
    font-size: 0.8em;
}

.photo-project {
    font-size: 0.8em;
    color: var(--primary-color);
    background: var(--gray-100);
    padding: 3px 8px;
    border-radius: 12px;
    margin-bottom: 8px;
    display: inline-block;
    font-weight: 500;
}

.photo-actions {
    display: flex;
    gap: 8px;
}

.no-photos {
    text-align: center;
    padding: 40px;
    color: var(--gray-600);
    font-style: italic;
}

/* Upload specific styles */
.file-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    border: 2px dashed var(--gray-400);
    border-radius: 12px;
    background: var(--gray-100);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 15px;
}

.file-input-label:hover {
    border-color: var(--primary-color);
    background: var(--gray-200);
}

.file-input-label.has-files {
    border-color: var(--success);
    background: rgba(72, 187, 120, 0.05);
}

.upload-icon {
    font-size: 3em;
    color: var(--gray-500);
}

.upload-text {
    color: var(--gray-700);
    font-size: 1.1em;
    font-weight: 500;
    text-align: center;
}

.upload-hint {
    color: var(--gray-600);
    font-size: 0.9em;
    text-align: center;
}

.file-list {
    margin-top: 15px;
    padding: 15px;
    background: var(--gray-200);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-300);
    color: var(--secondary-color);
    font-size: 0.95em;
}

.file-item:last-child {
    border-bottom: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Larger modal for users management */
#usersModal .modal-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 5% auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.modal-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5em;
}

.modal h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.modal p {
    margin-bottom: 25px;
    color: var(--secondary-color);
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.lightbox img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--error);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    z-index: 1002;
}

.close:hover {
    background: var(--error-dark);
    transform: scale(1.1);
}

.lightbox-info {
    color: var(--secondary-color);
    text-align: center;
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: 500;
    padding: 10px;
    background: var(--gray-100);
    border-radius: 8px;
}

/* Navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(70, 156, 221, 0.8);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.lightbox-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-nav:disabled:hover {
    transform: translateY(-50%);
    background: rgba(70, 156, 221, 0.8);
}

.lightbox-prev {
    left: -25px;
}

.lightbox-next {
    right: -25px;
}

/* Photo counter */
.lightbox-counter {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(70, 156, 221, 0.9);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    z-index: 1002;
}

/* Gallery specific styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Hidden class for project filtering */
.gallery-item.hidden {
    display: none !important;
}

/* Project filter styling */
.project-filter {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.project-filter label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-color);
}

.project-filter select {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1em;
    background: var(--white);
    color: var(--secondary-color);
    transition: border-color 0.3s ease;
}

.project-filter select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(70, 156, 221, 0.1);
}

.image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: var(--gray-100);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(70,156,221,0.8), rgba(58,130,184,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    pointer-events: none;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.item-content {
    padding: 20px;
}

.item-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-size: 0.95em;
}

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

/* Responsive Design */
/* Tablet Styles */
@media (max-width: 1000px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .nav-menu a {
        padding: 15px 18px;
        min-height: 44px; /* Touch-friendly */
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 15px;
    }
    
    .nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        max-height: none;
        overflow: visible;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 4px;
    }
    
    .project-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
        padding: 4px;
    }
    
    .project-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .project-actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        font-size: 1em;
        min-height: 44px; /* Touch-friendly */
        border-radius: 8px;
        margin: 2px;
    }
    
    .page-header h1, .welcome-section h1 {
        font-size: 2em;
        line-height: 1.2;
    }
    
    .page-header p, .welcome-section p {
        font-size: 1em;
        padding: 0 10px;
    }
    
    .lightbox-content {
        width: 95%;
        max-width: 400px;
        margin: 20px auto;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .main-container {
        padding: 20px 15px;
    }
    
    .admin-container {
        padding: 20px 15px;
    }
    
    .projects-overview, .users-overview {
        padding: 0 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-item {
        min-height: 200px;
    }
    
    .upload-container, .form-container {
        padding: 20px;
        margin: 15px 0;
    }
    
    .btn {
        padding: 15px 20px;
        font-size: 1em;
        min-height: 44px; /* Touch-friendly */
        border-radius: 8px;
    }
    
    .form-group input[type="text"], 
    .form-group input[type="email"], 
    .form-group input[type="password"], 
    .form-group select, 
    .form-group textarea {
        padding: 15px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    .gallery-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .user-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .user-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .favorite-item {
        min-height: 180px;
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item {
        min-height: 250px;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Only force single column for very small screens */
@media (max-width: 520px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .page-header h1, .welcome-section h1 {
        font-size: 1.8em;
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 10px;
    }
    
    .project-overview-card, .project-card {
        padding: 4px;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .project-status {
        margin-left: 0;
    }
    
    .project-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }
    
    .stat-mini .stat-number {
        font-size: 1.5em;
    }
    
    .stat-mini .stat-label {
        font-size: 0.75em;
    }
    
    .nav-menu a {
        padding: 12px 15px;
        font-size: 0.9em;
        min-width: 120px;
        text-align: center;
    }
    
    .main-container {
        padding: 15px 10px;
    }
    
    .admin-container {
        padding: 15px 10px;
    }
    
    .projects-overview, .users-overview {
        padding: 0 10px;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
        padding: 16px 20px;
        font-size: 1em;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-actions .btn {
        width: 100%;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .upload-container, .form-container {
        padding: 15px;
    }
    
    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 1em;
        margin-bottom: 8px;
    }
}

/* Favorieten styling */
.favorites-counter {
    background: rgba(70, 156, 221, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
}

.favorites-counter span {
    display: block;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
}

.favorites-counter small {
    display: block;
    color: #666;
    margin-top: 5px;
    font-size: 14px;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.favorite-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.favorite-btn.active {
    background: var(--primary-color);
}

.favorite-btn.active:hover {
    background: var(--primary-dark);
}

.favorite-icon {
    font-size: 18px;
    color: white;
}

.favorite-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.favorite-message.show {
    transform: translateX(0);
}

.favorite-message.success {
    background: var(--success);
}

.favorite-message.error {
    background: var(--error);
}

.favorite-message.info {
    background: var(--primary-color);
}

/* Admin Overview Styles */
.users-overview {
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.users-overview h2 {
    color: var(--primary-color);
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.user-section {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
}

.user-info {
    flex: 1;
}

.user-info h3 {
    color: var(--secondary-color);
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: 600;
}

.user-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.stat-item {
    background: var(--gray-100);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    color: var(--gray-700);
}

.stat-item.extra-payment {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.status-complete {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-partial {
    background: linear-gradient(135deg, var(--warning) 0%, #d69e2e 100%);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-none {
    background: linear-gradient(135deg, var(--gray-400) 0%, var(--gray-500) 100%);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.user-projects {
    margin-top: 12px;
    font-size: 0.9em;
    color: var(--gray-700);
}

.user-projects strong {
    color: var(--secondary-color);
    margin-right: 8px;
}

.project-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    margin: 2px 4px 2px 0;
    cursor: help;
    transition: all 0.3s ease;
}

.project-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.no-projects {
    color: var(--warning);
    font-style: italic;
    font-size: 0.85em;
    font-weight: 500;
}

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

.user-actions .btn {
    font-size: 0.85em;
    padding: 6px 14px;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray-500) 0%, var(--gray-600) 100%);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(113, 128, 150, 0.3);
}

.user-favorites {
    margin-top: 20px;
}

.user-favorites h4 {
    color: var(--secondary-color);
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 600;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.favorite-item {
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.favorite-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.favorite-item.approved {
    border-color: var(--success);
}

.favorite-item.pending {
    border-color: var(--warning);
}

.favorite-item.is-favorite {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.favorite-item.is-favorite.approved {
    border-color: var(--success);
    background: linear-gradient(135deg, #e8f5e8 0%, #ffffff 100%);
}

.favorite-item.is-favorite.pending {
    border-color: var(--warning);
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
}

.favorite-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.favorite-item:hover img {
    opacity: 0.9;
}

.favorite-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    flex-grow: 1;
}

.favorite-status .status-approved {
    background: var(--success);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    text-align: center;
}

.favorite-status .status-pending {
    background: var(--warning);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    text-align: center;
}

.favorite-status .status-favorite {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b5a00;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    text-align: center;
    border: 1px solid #f1c40f;
}

.favorite-filename {
    font-size: 0.75em;
    color: var(--secondary-color);
    font-weight: 500;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.3;
    margin-top: auto;
}

.all-photos-section {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.all-photos-section h2 {
    color: var(--primary-color);
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.no-users {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

.no-users p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Admin Badge */
.admin-badge {
    background: linear-gradient(135deg, var(--error) 0%, var(--error-dark) 100%);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

/* Mobile Responsiveness for Admin Overview */
@media (max-width: 768px) {
    .user-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .user-stats {
        flex-wrap: wrap;
    }
    
    .user-actions {
        width: 100%;
    }
    
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .user-actions .btn {
        font-size: 0.9em;
        padding: 8px 12px;
    }
    
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .favorite-item {
        min-height: 180px;
        padding: 10px;
    }
    
    .favorite-item img {
        height: 75px;
    }
    
    .favorite-status .status-approved,
    .favorite-status .status-pending,
    .favorite-status .status-favorite {
        font-size: 0.65em;
        padding: 2px 6px;
    }
    
    .favorite-filename {
        font-size: 0.7em;
    }
}

/* Additional CSS classes for inline styles cleanup */
.debug-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    grid-column: 1 / -1;
}

.debug-summary {
    cursor: pointer;
    font-weight: 600;
    color: #856404;
}

.debug-details {
    margin-top: 10px;
    font-size: 0.75em;
    color: #856404;
}

.debug-duplicate {
    color: red;
}

.photo-missing {
    width: 100%;
    height: 90px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.7em;
}

.file-missing {
    color: red;
    font-size: 0.8em;
}

.inline-form {
    display: inline;
}

.flex-form {
    display: inline;
    flex: 1;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    color: white;
    margin: 2px;
}

.status-badge.bulk-access {
    background: #6f42c1;
}

.status-badge.paid {
    background: #28a745;
}

.status-badge.waiting {
    background: #ffc107;
    color: #212529;
}

.status-badge.free {
    background: #28a745;
}

.payment-amount {
    color: #6c757d;
    font-size: 0.8em;
}

.order-id {
    color: #6c757d;
    font-size: 0.8em;
}

.stats-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-weight: bold;
}

.stat-label.photos {
    color: #2a5298;
}

.stat-label.bulk {
    color: #6f42c1;
}

.stat-label.accessible {
    color: #28a745;
}

.stat-label.waiting {
    color: #ffc107;
}

.stat-label.revenue {
    color: #007bff;
}

.bulk-access-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bulk-access-title {
    margin: 0 0 15px 0;
    color: #6f42c1;
}

.bulk-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.bulk-user-card {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #6f42c1;
}

.bulk-user-name {
    font-weight: bold;
    color: #6f42c1;
}

.bulk-user-date {
    font-size: 0.85em;
    color: #6c757d;
    margin: 5px 0;
}

.bulk-user-project {
    font-size: 0.85em;
    color: #6c757d;
}

.bulk-user-badge {
    background: #6f42c1;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    margin-top: 8px;
    display: inline-block;
}

.bulk-actions-bar {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: none;
    border-left: 4px solid #ffc107;
}

.bulk-actions-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.checkbox-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    transform: scale(1.2);
}

.pagination {
    margin: 20px 0;
}

.pagination a {
    padding: 5px 10px;
    margin: 2px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #007bff;
}

.pagination a.active {
    background: #007bff;
    color: white;
}

.pagination a:hover {
    background: #f8f9fa;
}

.warning-text {
    margin-top: 10px;
    color: #e53e3e;
    font-size: 0.9em;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.email-fields {
    display: none;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.project-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.project-header {
    margin: 20px 0 15px 0;
    color: #2a5298;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.checkbox-section {
    margin: 10px 0;
}

.checkbox-group {
    margin-bottom: 10px;
}

.existing-project-fields {
    display: none;
}

.new-project-fields {
    display: none;
}

.new-project-header {
    margin: 15px 0 10px 0;
    color: #28a745;
}

.pricing-fields {
    display: none;
}

.modal-large {
    max-width: 600px;
}

.modal-medium {
    max-width: 500px;
}

.user-email {
    font-size: 0.9em;
    color: #2a5298;
}

.user-email-missing {
    font-size: 0.8em;
    color: #6c757d;
    font-style: italic;
}

.user-price {
    color: #28a745;
    font-weight: bold;
}

.user-price-default {
    color: #6c757d;
    font-size: 0.8em;
}

.current-user-indicator {
    color: #6c757d;
    font-size: 0.8em;
}

.warning-info {
    margin: 15px 0;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    font-size: 0.9em;
    color: #856404;
}

.info-list {
    margin: 10px 0;
    padding-left: 20px;
}

.info-list li {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .bulk-actions-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .bulk-actions-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .bulk-users-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .action-btn {
        padding: 10px 15px;
        font-size: 0.85em;
    }
    
    .bulk-actions-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .bulk-actions-buttons .action-btn {
        width: 100%;
        margin: 2px 0;
    }
}

/* 360° Photo Styling */
.gallery-item-360 {
    border: 3px solid transparent;
    background: linear-gradient(135deg, #4299e1, #63b3ed, #90cdf4) border-box;
    background-clip: border-box;
    position: relative;
    animation: gradient-border 3s ease infinite;
}

@keyframes gradient-border {
    0%, 100% { 
        background: linear-gradient(135deg, #4299e1, #63b3ed, #90cdf4) border-box; 
    }
    50% { 
        background: linear-gradient(135deg, #90cdf4, #4299e1, #63b3ed) border-box; 
    }
}

.gallery-item-360::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: white;
    border-radius: inherit;
    z-index: -1;
}

.photo-360-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #4299e1, #63b3ed);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.favorite-item.gallery-item-360 {
    border: 3px solid transparent;
    background: linear-gradient(135deg, #4299e1, #63b3ed, #90cdf4) border-box;
    background-clip: border-box;
    position: relative;
    animation: gradient-border 3s ease infinite;
}

.favorite-item.gallery-item-360::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: white;
    border-radius: inherit;
    z-index: -1;
}

.status-360 {
    background: linear-gradient(135deg, #4299e1, #63b3ed);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    display: inline-block;
    margin-right: 5px;
}

.external-viewer {
    color: #4299e1;
    font-weight: 500;
}

.file-missing {
    color: #e53e3e;
    font-weight: 500;
}

/* 360° Viewer Modal */
.viewer-360-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.viewer-360-content {
    position: relative;
    width: 95%;
    height: 95%;
    margin: 2.5% auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.viewer-360-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #4299e1, #63b3ed);
    color: white;
}

.viewer-360-title {
    font-size: 1.1em;
    font-weight: 600;
}

.viewer-360-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.viewer-360-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.viewer-360-frame {
    width: 100%;
    height: calc(100% - 60px);
    border: none;
    background: #f8f9fa;
}

/* 360° Lightbox Enhancement */
#lightbox360 .lightbox-content {
    background: #000;
}

#lightbox360-container {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#lightbox360-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive 360° Styling */
@media (max-width: 768px) {
    .viewer-360-content {
        width: 98%;
        height: 98%;
        margin: 1% auto;
    }
    
    .viewer-360-header {
        padding: 10px 15px;
    }
    
    .viewer-360-title {
        font-size: 1em;
    }
    
    .photo-360-badge {
        top: 5px;
        right: 5px;
        padding: 3px 6px;
        font-size: 0.7em;
    }
}

@media (max-width: 480px) {
    .viewer-360-content {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .viewer-360-header {
        padding: 8px 12px;
    }
    
    .viewer-360-title {
        font-size: 0.9em;
    }
    
    .photo-360-badge {
        top: 3px;
        right: 3px;
        padding: 2px 5px;
        font-size: 0.65em;
    }
}

/* Bulk Download Section Styling */
.bulk-download-section {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 32px rgba(72, 187, 120, 0.2);
}

.bulk-download-info {
    margin-bottom: 15px;
}

.bulk-download-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    font-weight: 600;
}

.bulk-download-info p {
    margin: 5px 0;
    opacity: 0.9;
}

.btn-bulk-download {
    background: linear-gradient(135deg, #3182ce, #2c5aa0);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-bulk-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(49, 130, 206, 0.4);
}

.btn-bulk-download:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Compact Section Headers */
.section-header.compact {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-300);
}

.section-header.compact .section-title {
    font-size: 1.2em;
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.videos-header.compact {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-300);
}

.videos-header.compact h2 {
    font-size: 1.2em;
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Video Section Styling */
.videos-section {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-300);
}

.videos-header {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gray-300);
}

.videos-header h2 {
    color: var(--primary-color);
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 3px 0;
}

.videos-header p {
    color: var(--gray-600);
    font-size: 0.85em;
    margin: 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    align-items: start;
}

.video-item {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-200);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-info {
    margin-top: 15px;
    text-align: center;
}

.video-info h3 {
    color: var(--primary-color);
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.video-info p {
    color: var(--gray-600);
    font-size: 0.9em;
    margin: 0;
}

.photo-count {
    color: var(--gray-600);
    font-weight: normal;
}



/* Compact Bulk Download Styling */
.bulk-download-section.compact {
    padding: 12px 20px;
    margin: 20px 0;
}

.bulk-download-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.bulk-info .bulk-title {
    font-size: 1em;
    font-weight: 500;
}

.bulk-actions {
    flex-shrink: 0;
}

.btn-bulk-download.compact {
    font-size: 0.9em;
    padding: 8px 16px;
    min-width: auto;
}

@media (max-width: 768px) {
    .bulk-download-section {
        padding: 15px;
        margin: 20px 0;
    }
    
    .bulk-download-section.compact {
        padding: 10px 15px;
    }
    
    .bulk-download-compact {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .bulk-download-info h3 {
        font-size: 1.1em;
    }
    
    .btn-bulk-download {
        width: 100%;
        padding: 15px;
        font-size: 1.1em;
    }
    
    .btn-bulk-download.compact {
        width: 100%;
        padding: 12px;
        font-size: 1em;
    }
    
    /* Video responsiveness */
    .videos-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .videos-header h2 {
        font-size: 1.1em;
    }
    
    .video-item {
        padding: 15px;
    }
    
    .login-container {
        padding: 25px;
        max-width: 300px;
        margin: 15px;
        width: calc(100% - 30px);
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Simple flexbox centering for login page */
body.login-page {
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    position: static !important;
    min-height: unset !important;
}

/* Mobile responsive styles for login form */
@media (max-width: 480px) {
    .login-container {
        padding: 20px;
        max-width: 280px;
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    /* Small screen video adjustments */
    .videos-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .videos-header h2 {
        font-size: 1.0em;
    }
    
    .videos-header p {
        font-size: 0.8em;
    }
    
    .videos-grid {
        gap: 15px;
    }
    
    .video-item {
        padding: 12px;
    }
    
    .video-info h3 {
        font-size: 1.1em;
    }
    
    .video-info p {
        font-size: 0.85em;
    }
} 