:root {
    --primary-color: #1a73e8;
    --secondary-color: #5f6368;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    background: var(--bg-gradient);
    font-family: 'Outfit', sans-serif;
    color: #333;
    min-height: 100vh;
}

.registration-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
    transition: transform 0.3s ease;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.form-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.form-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd;
    margin-left: 1rem;
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(26, 115, 232, 0.1);
}

.btn-submit {
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

.footer {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(5px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-card {
    animation: fadeIn 0.8s ease-out;
}

/* ==================== Photo Upload Styles ==================== */
.photo-upload-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.photo-preview-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px dashed #7dd3fc;
    border-radius: 10px;
    flex: 1;
}

.photo-actions-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px dashed #7dd3fc;
    border-radius: 10px;
}

.photo-preview-box:hover,
.photo-actions-box:hover {
    border-color: #38bdf8;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.photo-preview {
    width: 75px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    color: #94a3b8;
    gap: 0.3rem;
}

.photo-preview svg {
    width: 28px;
    height: 28px;
    color: #cbd5e1;
}

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

.photo-preview span {
    font-size: 0.7rem;
    text-align: center;
    color: #94a3b8;
}

/* Photo Action Buttons */
.btn-photo-primary {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
    transition: all 0.2s ease;
}

.btn-photo-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.btn-photo-secondary {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.btn-photo-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-photo-danger {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    transition: all 0.2s ease;
}

.btn-photo-danger:hover {
    background: #fecaca;
}

/* Camera Modal */
.camera-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.camera-modal.show {
    display: flex;
}

.camera-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 640px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.camera-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
}

.camera-modal-header h5 {
    margin: 0;
    font-weight: 600;
}

.camera-modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.camera-modal-header .btn-close:hover {
    opacity: 1;
}

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

.camera-modal-body video {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.camera-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
}

/* Responsive */
@media (max-width: 576px) {
    .photo-upload-container {
        padding: 1rem;
    }

    .photo-preview {
        width: 120px;
        height: 150px;
    }

    .photo-actions {
        flex-direction: column;
        width: 100%;
    }

    .photo-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .camera-modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .photo-upload-container {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: #475569;
    }

    .photo-upload-container:hover {
        background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
        border-color: #60a5fa;
    }

    .photo-preview {
        background: #1e293b;
        color: #94a3b8;
    }

    .camera-modal-content {
        background: #1e293b;
    }

    .camera-modal-footer {
        background: #0f172a;
    }
}