/* YKB Photo Viewer - Clean & Simple */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary { background: #2563eb; color: white; }
.btn-primary:hover { background: #1d4ed8; }

.btn-success { background: #16a34a; color: white; }
.btn-success:hover { background: #15803d; }

.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }

.btn-secondary { background: #6b7280; color: white; }
.btn-secondary:hover { background: #4b5563; }

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

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

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

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Login Form */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #374151;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.auth-switch p {
    color: #6b7280;
    font-size: 14px;
}

.auth-switch a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    /* Mobile performance optimization */
    will-change: transform;
    contain: layout style paint;
}

.photo-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.delete-photo-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.delete-photo-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.download-photo-btn {
    position: absolute;
    top: 8px;
    right: 42px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.9);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.download-photo-btn:hover {
    background: #16a34a;
    transform: scale(1.1);
}

.public-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.95);
    color: white;
    border: 2px solid white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.public-indicator:hover {
    transform: scale(1.1);
}

.photo-access-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    border: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile adjustments for buttons */
@media (max-width: 768px) {
    .delete-photo-btn,
    .download-photo-btn,
    .photo-access-badge {
        width: 32px;
        height: 32px;
        font-size: 15px;
        top: 6px;
    }

    .delete-photo-btn {
        right: 6px;
    }

    .download-photo-btn {
        right: 42px;
    }

    .photo-access-badge {
        left: 6px;
    }

    .public-indicator {
        width: 36px;
        height: 36px;
        font-size: 18px;
        bottom: 6px;
        right: 6px;
    }
}

@media (max-width: 480px) {
    .delete-photo-btn,
    .download-photo-btn,
    .photo-access-badge {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .public-indicator {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
}

.photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* Mobile performance optimization */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    image-rendering: optimizeSpeed;
}

.photo-info {
    padding: 15px;
}

.photo-title {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-photo-btn-bottom {
    width: 100%;
    padding: 8px 12px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
}

.download-photo-btn-bottom:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.download-photo-btn-bottom:active {
    transform: translateY(0);
}

.photo-meta {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photo-date {
    color: #9ca3af;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    color: #6b7280;
    font-size: 14px;
}

.stat-blue { color: #2563eb; }
.stat-green { color: #16a34a; }
.stat-orange { color: #ea580c; }
.stat-red { color: #dc2626; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 95%;
    max-height: 95%;
    overflow: auto;
    position: relative;
}

/* Photo Modal - Büyük görüntü için */
.modal-content.photo-modal {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    background: rgba(0,0,0,0.95);
    display: flex;
    flex-direction: column;
}

.modal-content.photo-modal .modal-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(229,231,235,0.3);
}

.modal-content.photo-modal .modal-body {
    padding: 0;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    background: transparent;
    position: relative;
}

.modal-content.photo-modal img {
    max-width: 90vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    border-radius: 4px;
}

.modal-content.photo-modal .photo-modal-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.modal-content.photo-modal .photo-modal-controls .btn {
    border-radius: 20px;
    font-weight: 500;
}

/* Permission Modal - Büyük kullanıcı listesi için */
.modal-content.permission-modal {
    min-width: 600px;
    max-width: 800px;
    min-height: 500px;
}

@media (max-width: 768px) {
    .modal-content.permission-modal {
        min-width: auto;
        max-width: 95%;
        min-height: auto;
        max-height: 90vh;
    }

    #currentPhoto img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .modal-content.permission-modal {
        max-width: 98%;
        max-height: 95vh;
    }

    #currentPhoto img {
        height: 150px !important;
    }
}

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

.modal-body {
    padding: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    z-index: 1000;
    position: relative;
}

.modal-close:hover {
    color: #374151;
}

/* File Upload */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: border-color 0.2s;
    cursor: pointer;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #2563eb;
    background: #f0f7ff;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.upload-text {
    color: #6b7280;
    margin-bottom: 10px;
}

/* User Selection */
.user-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 15px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 4px;
    transition: background 0.2s;
    cursor: pointer;
    min-height: 50px;
}

.user-item:hover {
    background: #f3f4f6;
}

.user-checkbox {
    margin: 0;
}

.user-name {
    font-weight: 500;
}

.user-email {
    color: #6b7280;
    font-size: 12px;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.notification.show {
    transform: translateX(0);
}

.notification.success { background: #16a34a; }
.notification.error { background: #dc2626; }
.notification.warning { background: #ea580c; }
.notification.info { background: #2563eb; }

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

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

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .nav-content {
        padding: 0 10px;
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .user-info {
        font-size: 12px;
        gap: 10px;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .photo-card img {
        height: 140px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .modal-content {
        max-width: 95%;
        margin: 10px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-body {
        padding: 15px;
    }

    .upload-area {
        padding: 20px 15px;
    }

    .upload-icon {
        font-size: 36px;
    }

    .login-container {
        margin: 50px auto;
        padding: 30px 20px;
    }

    .card-header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .card-body {
        padding: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }

    .nav-content {
        padding: 0 5px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .user-info {
        font-size: 11px;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .photo-card {
        border-radius: 6px;
    }

    .photo-card img {
        height: 120px;
    }

    .photo-info {
        padding: 10px;
    }

    .photo-title {
        font-size: 12px;
    }

    .photo-meta {
        font-size: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 12px;
    }

    .modal-content {
        max-width: 98%;
        margin: 5px;
    }

    .modal-header {
        padding: 10px;
    }

    .modal-body {
        padding: 10px;
    }

    .login-container {
        margin: 20px auto;
        padding: 20px 15px;
    }

    .login-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .card {
        border-radius: 6px;
    }

    .card-header {
        padding: 10px;
    }

    .card-body {
        padding: 10px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .upload-area {
        padding: 15px 10px;
    }

    .upload-icon {
        font-size: 28px;
    }

    .upload-text {
        font-size: 14px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .form-input, .form-select, .form-textarea {
        padding: 8px;
        font-size: 13px;
    }

    /* Photo Modal Responsive */
    .modal-content.photo-modal img {
        max-width: 95vw;
        max-height: 60vh;
    }

    .modal-content.photo-modal .photo-modal-controls {
        position: fixed;
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        justify-content: center;
        padding: 8px 12px;
        gap: 8px;
    }

    .modal-content.photo-modal .photo-modal-controls .btn {
        flex: 1;
        max-width: 120px;
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Additional responsive styles for photo modal */
@media (max-width: 768px) {
    .modal-content.photo-modal img {
        max-width: 92vw;
        max-height: 65vh;
    }

    .modal-content.photo-modal .photo-modal-controls {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 10px 15px;
        margin: 95px;
    }

    .modal-content.photo-modal .photo-modal-controls .btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 1024px) {
    .modal-content.photo-modal img {
        max-width: 88vw;
        max-height: 68vh;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .photo-card {
        transition: transform 0.2s, box-shadow 0.2s;
        -webkit-tap-highlight-color: transparent;
    }

    .photo-card:active {
        transform: scale(0.98);
    }

    .btn {
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .user-item {
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    /* Prevent text selection on mobile for better UX */
    .photo-card, .stat-card, .user-item {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* Better scroll behavior */
    .modal-content {
        -webkit-overflow-scrolling: touch;
    }

    .user-list {
        -webkit-overflow-scrolling: touch;
    }
}

/* Landscape mode improvements for phones */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content.photo-modal img {
        max-height: 80vh;
        max-width: 85vw;
    }

    .modal-content.photo-modal .photo-modal-controls {
        bottom: 5px;
        padding: 6px 10px;
    }
}

/* Very large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

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

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .photo-card img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ENCO Logistics Branding Footer */
.enco-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 2px solid #1d4ed8;
}

.enco-banner {
    padding: 3px 0;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.enco-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.enco-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.enco-icon {
    font-size: 14px;
    background: rgba(255,255,255,0.2);
    padding: 4px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.enco-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.enco-text strong {
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.enco-text span {
    color: rgba(255,255,255,0.9);
    font-size: 9px;
    font-weight: 400;
}

.enco-message {
    color: rgba(255,255,255,0.95);
    font-size: 10px;
    font-weight: 500;
    text-align: right;
}

/* Responsive adjustments for ENCO footer */
@media (max-width: 768px) {
    .enco-content {
        flex-direction: row;
        gap: 6px;
        padding: 0 10px;
    }

    .enco-banner {
        padding: 3px 0;
    }

    .enco-icon {
        font-size: 12px;
        padding: 3px;
    }

    .enco-text strong {
        font-size: 10px;
    }

    .enco-text span {
        font-size: 8px;
    }

    .enco-message {
        text-align: center;
        font-size: 9px;
    }

    /* Add bottom padding to main content to avoid footer overlap */
    .container {
        padding-bottom: 35px;
    }

    #mainApp {
        padding-bottom: 35px;
    }

    /* Fix modal body bottom padding for footer overlap */
    .modal-body {
        padding-bottom: 80px;
    }

    /* Fix modal buttons positioning on mobile */
    .modal-body .btn:last-child,
    .modal-body .flex:last-child {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .enco-logo {
        gap: 4px;
    }

    .enco-icon {
        font-size: 11px;
        padding: 3px;
    }

    .enco-text strong {
        font-size: 9px;
    }

    .enco-text span {
        font-size: 7px;
    }

    .enco-message {
        font-size: 8px;
    }

    .container {
        padding-bottom: 30px;
    }

    #mainApp {
        padding-bottom: 30px;
    }

    /* Fix modal body bottom padding for footer overlap on small phones */
    .modal-body {
        padding-bottom: 90px;
    }
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .container {
        padding-bottom: 35px;
    }

    #mainApp {
        padding-bottom: 35px;
    }
}

/* Role Permissions */
.role-permissions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.role-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-option:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.role-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.role-option label {
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    flex: 1;
}

.role-option input[type="radio"]:checked + label {
    color: #1e40af;
    font-weight: 600;
}

.role-option:has(input[type="radio"]:checked) {
    border-color: #3b82f6;
    background: #eff6ff;
}

/* Photo Navigation Controls */
.photo-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    max-width: 90%;
}

.nav-btn {
    padding: 10px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 120px;
    width: 120px;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.nav-btn:active:not(:disabled) {
    transform: translateY(0);
}

.nav-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.5;
}

.photo-counter {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    min-width: 80px;
    text-align: center;
    padding: 8px 16px;
    background: rgba(243, 244, 246, 0.8);
    border-radius: 8px;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .photo-navigation {
        gap: 10px;
        padding: 10px;
        bottom: 15px;
        max-width: 95%;
    }

    .nav-btn {
        padding: 12px 16px;
        font-size: 13px;
        min-width: 110px;
        width: 110px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .photo-counter {
        font-size: 13px;
        min-width: 70px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .photo-navigation {
        gap: 8px;
        padding: 8px;
        bottom: 10px;
        max-width: 98%;
        flex-wrap: nowrap;
    }

    .nav-btn {
        padding: 10px 12px;
        font-size: 12px;
        min-width: 100px;
        width: 100px;
        flex: 0 0 100px;
    }

    .photo-counter {
        font-size: 12px;
        min-width: 60px;
        padding: 6px 10px;
    }
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.w-full { width: 100%; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }