/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #0B0F19;
    --bg-card: #0F1623;
    --bg-input: #080B13;
    --border-color: #1E293B;
    --border-focus: #3B82F6;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --primary-blue: #2563EB;
    --primary-blue-hover: #1D4ED8;
    --gradient-blue: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    --gradient-purple: linear-gradient(90deg, #3B82F6 0%, #6366F1 50%, #8B5CF6 100%);
    
    --container-width: 1000px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
.header {
    background: rgba(11, 15, 25, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-container {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

.logo-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #B4C5FF;
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active {
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 4px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-action {
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.icon-action:hover {
    color: var(--text-primary);
}

.btn-gradient {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Main Content */
.main-content {
    padding: 40px 24px 80px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 165, 233, 0.1);
    color: #38BDF8;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.page-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 600px;
    text-align: center;
    margin: 0 auto 40px;
}

/* Form Styles */
.submit-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header i {
    color: var(--text-primary);
    font-size: 1.25rem;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group.flex-1 {
    flex: 1;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

input[type="text"],
input[type="url"],
textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

input::placeholder,
textarea::placeholder {
    color: #475569;
}

/* Upload Options */
.avatar-upload-options {
    display: flex;
    gap: 16px;
}

.upload-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-input);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: var(--border-focus);
    background: rgba(59, 130, 246, 0.05);
}

.upload-box i {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.upload-box span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.drag-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-input);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 120px;
}

.drag-drop-zone:hover {
    border-color: var(--border-focus);
    background: rgba(59, 130, 246, 0.05);
}

.drag-drop-zone i {
    font-size: 1.8rem;
    color: #475569;
    margin-bottom: 8px;
}

.drag-drop-zone p {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.drag-drop-zone span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Button Actions */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.btn-submit-final {
    position: relative;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 300px;
}

.btn-submit-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-purple);
    z-index: -1;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.btn-submit-final:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-submit-final:hover::before {
    opacity: 1;
}

.glow-text {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    z-index: -1;
    filter: blur(2px);
    pointer-events: none;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 40px;
}

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

.footer .copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.text-blue {
    color: #3B82F6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Camera Modal Styles */
.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.camera-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.camera-modal.show .camera-content {
    transform: scale(1);
}

.camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.camera-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-close-camera {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-camera:hover {
    color: var(--text-primary);
}

.camera-body {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-container, .preview-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#webcam-video, #captured-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Circular Camera Guideline to align face */
.camera-guideline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
}

.camera-footer {
    display: flex;
    justify-content: center;
}

.btn-camera-action {
    background: var(--gradient-blue);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-camera-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-camera-action.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-camera-action.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    box-shadow: none;
}

.btn-camera-action.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.btn-camera-action.btn-success:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.flex-1 {
    flex: 1;
}
