* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #dfe6e9;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

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

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-dark {
    background: var(--primary-color);
    color: var(--white);
}

.navbar-dark .logo {
    color: var(--white);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.navbar-dark .nav-links {
    color: var(--white);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-delete {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

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

.navbar-dark .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-delete {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* Landing Page */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.access-form {
    background: var(--white);
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    margin: 2rem auto 0;
    box-shadow: var(--shadow-lg);
}

.access-form h3 {
    margin-bottom: 1.5rem;
}

.access-form .form-group {
    display: flex;
    gap: 0.5rem;
}

.access-form input {
    flex: 1;
}

/* Features */
.features {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.login-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #060;
    border: 1px solid #cfc;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.empty-state h3 {
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Gallery Cards */
.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-draft {
    background: #f5f5f5;
    color: #666;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-archived {
    background: #f8d7da;
    color: #721c24;
}

.gallery-card h3 {
    margin-bottom: 0.5rem;
    padding-right: 5rem;
}

.gallery-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.gallery-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

.gallery-info {
    margin: 1rem 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.access-code {
    font-family: 'Courier New', monospace;
    background: var(--light-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.gallery-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery-actions .btn-primary,
.gallery-actions .btn-secondary {
    flex: 1;
    text-align: center;
}

/* Form Container */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-container h2 {
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    flex: 1;
}

/* Manage Gallery */
.manage-header {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.status-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

.gallery-info-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 1rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.access-code-large {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-top: 0.5rem;
}

.share-url {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    font-weight: 600;
    color: var(--text-dark);
}

/* Upload Section */
.upload-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.upload-section h3 {
    margin-bottom: 1.5rem;
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--accent-color);
    background: var(--light-bg);
}

.upload-area input[type="file"] {
    display: none;
}

.upload-area label {
    cursor: pointer;
    display: block;
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.upload-hint {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Photos Grid */
.photos-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.photos-section h3 {
    margin-bottom: 1.5rem;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

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

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

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-info {
    color: var(--white);
    font-size: 0.75rem;
}

.photo-info span {
    display: block;
    margin-bottom: 0.25rem;
}

.photo-feedback-info {
    color: var(--white);
    font-size: 0.85rem;
}

.rating-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.rating-badge.favorite {
    background: var(--warning-color);
}

.rating-badge.comment {
    background: #3498db;
    color: white;
}

/* Client Gallery View */
.gallery-view-header {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.gallery-photographer {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.client-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.client-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.client-photo-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.photo-has-feedback {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

/* Photo Modal */
.photo-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    overflow-y: auto;
}

.photo-modal.active {
    display: block;
}

.modal-content {
    background: var(--white);
    max-width: 1400px;
    margin: 2rem auto;
    border-radius: 12px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 400px;
}

.modal-image {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.modal-image img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.modal-sidebar {
    padding: 2rem;
    overflow-y: auto;
    max-height: 80vh;
}

.modal-sidebar h3 {
    margin-bottom: 1.5rem;
}

/* Feedback Form */
.feedback-form {
    margin-bottom: 2rem;
}

.rating-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-option {
    display: block;
    cursor: pointer;
}

.rating-option input {
    display: none;
}

.rating-option span {
    display: block;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.rating-option input:checked + span {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.rating-option:hover span {
    border-color: var(--accent-color);
}

/* Existing Feedback */
.existing-feedback {
    border-top: 2px solid var(--border-color);
    padding-top: 1.5rem;
}

.existing-feedback h4 {
    margin-bottom: 1rem;
}

.feedback-item {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.feedback-item p {
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.feedback-item small {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

/* Favorite Checkbox */
.favorite-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.favorite-checkbox:hover {
    background: #fff8e1;
    border-color: var(--warning-color);
}

.favorite-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.favorite-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.btn-favorites {
    padding: 0.625rem 1.25rem;
    background: var(--warning-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-favorites:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* Favorites Page */
.favorites-header {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.favorites-header h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.favorites-header .gallery-title {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.favorites-count {
    color: var(--warning-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.favorite-photo-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.favorite-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.favorite-photo-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.favorite-photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.favorite-photo-image:hover img {
    transform: scale(1.05);
}

.favorite-photo-info {
    padding: 1rem;
}

.favorited-by {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.favorited-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.modal-image-large {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
}

.modal-image-large img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

/* Favorite Lists Styles */
.btn-list-item {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-list-item:hover {
    background: var(--light-bg);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.btn-create-list {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-create-list:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.add-to-list-section {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.add-to-list-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.lists-quick-add {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.no-lists-msg {
    color: var(--text-light);
    font-style: italic;
    margin: 10px 0;
}

/* Lists Manager Modal */
.lists-manager-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.lists-manager {
    padding: 2rem;
}

.lists-manager h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.list-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.list-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.list-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.list-card p {
    color: var(--text-light);
    margin: 5px 0;
}

.list-card small {
    color: var(--text-light);
    font-size: 0.85rem;
}

.list-card .btn-secondary {
    margin-top: 15px;
    display: inline-block;
}

/* Quick Menu */
.quick-menu {
    position: fixed;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 2000;
    min-width: 200px;
    max-width: 250px;
}

.quick-menu-content h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1rem;
}

#quick-lists-container {
    max-height: 300px;
    overflow-y: auto;
}

/* Small Modal */
.small-modal {
    max-width: 500px;
    padding: 2rem;
}

.small-modal h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    flex: 1;
}

/* Photo Quick Actions */
.photo-quick-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-photo-item:hover .photo-quick-actions {
    opacity: 1;
}

.btn-quick-add {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-quick-add:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Photo in List Indicator */
.photo-in-list-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Empty State */
.empty-state-text {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    font-size: 1.1rem;
}

/* Notification Animations */
.notification {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Photographer Client Lists View */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.page-header .subtitle {
    color: var(--text-light);
    margin-top: 0.5rem;
}

.header-stats {
    display: flex;
    gap: 2rem;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    min-width: 100px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.toggle-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.toggle-btn:hover:not(.active) {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.client-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.client-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.badge {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.client-lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.client-list-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.client-list-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.list-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.list-card-header h4 {
    margin: 0;
    color: var(--text-dark);
    flex: 1;
}

.photo-count-badge {
    background: var(--warning-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.list-card-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.list-card-body {
    margin-bottom: 1rem;
}

.list-card-body p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.list-card-actions {
    margin-top: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.all-lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.list-card-detailed {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.list-card-detailed:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.modal-large {
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 0 0 1.5rem 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.modal-header p {
    margin: 0;
    color: var(--text-light);
}

.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.empty-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Stats Row Enhancements */
.stat-highlight {
    background: linear-gradient(135deg, var(--warning-color), var(--accent-color));
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: var(--white);
}

.stat-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.stat-link:hover {
    text-decoration: underline;
}

.quick-actions-row {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-view-lists {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--warning-color), var(--accent-color));
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-view-lists:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Enhanced Photo Grid for Lists */
.photos-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.photo-item-enhanced {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.photo-item-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

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

.photo-item-enhanced .photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item-enhanced:hover .photo-overlay {
    opacity: 1;
}

.photo-item-enhanced .photo-info {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.photo-item-enhanced .photo-info span {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.photo-item-enhanced .photo-info small {
    display: block;
    opacity: 0.8;
    font-size: 0.75rem;
}

.btn-view-photo {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-photo:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    z-index: 10001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 120px 20px;
    overflow: auto;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-info-left h3 {
    color: var(--white);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.lightbox-info-left p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

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

.photo-counter {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    margin-right: 1rem;
}

.btn-lightbox {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lightbox:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.6);
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 120px;
}

.lightbox-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.lightbox-thumb:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Slideshow Button */
.btn-slideshow {
    padding: 0.75rem 1.5rem;
    background: var(--warning-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-slideshow:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .galleries-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .manage-header {
        flex-direction: column;
        gap: 1rem;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-sidebar {
        max-height: none;
    }

    .client-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
