@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Poppins:wght@300;400;500;700&display=swap');

body {
    background: radial-gradient(circle at center, #1b2030 0%, #080a0f 100%);
    color: #e2e8f0;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow-x: hidden;
}

.logoTitle {
    display: block;
    background-image: url(../assets/logo/HAVEN_logo.png);
    width: 320px;
    height: 120px;
    margin: 0 auto 40px auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

/* Layout container */
.container-jobs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.job {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    border-radius: 20px;
    background-color: rgba(25, 30, 45, 0.45);
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.job::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.job:hover {
    transform: translateY(-8px);
}

.sasp {
    background-image: url(../assets/logo/SASP_logo.png);
}
.sasp:hover {
    border-color: rgba(0, 114, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 114, 255, 0.25), 0 0 15px rgba(0, 114, 255, 0.1);
}

.doj {
    background-image: url(../assets/logo/DOJ_logo.png);
}
.doj:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.25), 0 0 15px rgba(212, 175, 55, 0.1);
}

.gov {
    background-image: url(../assets/logo/GOV_logo.png);
}
.gov:hover {
    border-color: rgba(186, 12, 47, 0.5);
    box-shadow: 0 15px 35px rgba(186, 12, 47, 0.25), 0 0 15px rgba(186, 12, 47, 0.1);
}

.sams {
    background-image: url(../assets/logo/EMS_logo.png);
}
.sams:hover {
    border-color: rgba(0, 184, 148, 0.5);
    box-shadow: 0 15px 35px rgba(0, 184, 148, 0.25), 0 0 15px rgba(0, 184, 148, 0.1);
}

.sass {
    background-image: url(../assets/logo/Gruppe6_logo.png);
}
.sass:hover {
    border-color: rgba(255, 234, 167, 0.5);
    box-shadow: 0 15px 35px rgba(255, 234, 167, 0.25), 0 0 15px rgba(255, 234, 167, 0.1);
}

/* --- GATEWAY LAYOUT & SYSTEM STYLES --- */

.gateway-body {
    background: radial-gradient(circle at center, #1c1233 0%, #05030a 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: block;
    overflow-x: hidden;
}

/* LOGIN WRAPPER & CARD */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.login-card {
    background: rgba(22, 17, 37, 0.55);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 40px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-brand {
    margin-bottom: 35px;
}

.brand-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
}

.login-brand h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.login-brand p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.alert-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 25px;
    text-align: left;
    box-sizing: border-box;
}

.alert-box.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.alert-box.error i {
    font-size: 16px;
}

.login-actions {
    margin-bottom: 30px;
}

.btn-discord {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: #5865f2;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 16px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.login-footer p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* APP LAYOUT & SIDEBAR */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 280px;
    background: rgba(17, 13, 30, 0.85);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand img {
    height: 40px;
    width: auto;
}

.sidebar-brand span {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 40px 0;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50px;
    border: 2px solid #5865f2;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.user-role {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ef4444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.12);
    transform: translateX(-2px);
}

.main-content {
    flex-grow: 1;
    padding: 60px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

/* PROFILE SELECTOR STYLES */
.profiles-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.section-header p {
    font-size: 16px;
    color: #94a3b8;
    margin: 0;
}

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

.profile-card {
    background: rgba(24, 18, 43, 0.45);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.profile-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.profile-card:hover .profile-card-glow {
    opacity: 1;
}

.profile-avatar-wrapper {
    position: relative;
    align-self: flex-start;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.dept-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.dept-badge.sasp { background: #0072ff; color: white; }
.dept-badge.doj { background: #d4af37; color: black; }
.dept-badge.gov { background: #ef4444; color: white; }
.dept-badge.sams { background: #10b981; color: white; }
.dept-badge.sass { background: #f59e0b; color: white; }

.profile-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
}

.detail-badge.grade i { color: #d4af37; }
.detail-badge.matricule i { color: #60a5fa; }

.profile-card-action {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-card-action i {
    transition: transform 0.2s ease;
}

.profile-card:hover .profile-card-action i {
    transform: translateX(4px);
}

/* ADD NEW PROFILE CARD */
.profile-card.add-new {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    background: transparent;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.profile-card.add-new:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.add-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: #94a3b8;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-card.add-new h3 {
    margin-bottom: 5px;
}

.profile-card.add-new p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* --- WIZARD CARD & CONTROLS --- */
.wizard-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn-back-selection {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.btn-back-selection:hover {
    color: #ffffff;
}

.wizard-card {
    background: rgba(18, 23, 38, 0.6);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    box-sizing: border-box;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.wizard-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.wizard-header p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* Steps Tracker Indicator */
.steps-tracker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 45px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 80px;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(13, 17, 30, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-text {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-top: 8px;
    transition: color 0.4s ease;
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    top: -12px;
    z-index: 1;
    margin: 0 -15px;
    transition: background 0.4s ease;
}

/* Step active/completed states */
.step-item.active .step-icon {
    border-color: #8b5cf6;
    color: #ffffff;
    background: #8b5cf6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.step-item.active .step-text {
    color: #8b5cf6;
    font-weight: 600;
}

.step-line.active {
    background: #8b5cf6;
}

/* STEP PANES */
.wizard-step-pane {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wizard-step-pane.active {
    display: block;
}

.step-pane-title {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.step-pane-title h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.step-pane-title p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group.center-group {
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.5px;
}

.form-group input {
    background: rgba(13, 17, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(13, 17, 30, 0.85);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

.field-hint {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

/* 6-Character Invitation Input */
.code-inputs-wrapper {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 15px 0;
}

.code-char-input {
    width: 54px;
    height: 54px;
    background: rgba(13, 17, 30, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    color: #ffffff;
    font-size: 22px !important;
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
    text-transform: uppercase;
}

.code-char-input:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3) !important;
}

/* Avatar photo preview */
.avatar-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.02);
    padding: 15px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.04);
}

.preview-label {
    font-size: 12px;
    color: #94a3b8;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* NAVIGATION BUTTONS */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.btn-prev:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.btn-prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-next {
    background: #8b5cf6;
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-next:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}

.btn-submit-step {
    background: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-submit-step:hover {
    background: #059669;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

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

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 900px) {
    .app-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 20px;
        flex-direction: row;
        align-items: center;
    }
    
    .sidebar-user {
        margin: 0;
        padding: 8px 12px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .steps-tracker {
        margin-bottom: 30px;
    }
    
    .step-text {
        display: none;
    }
    
    .code-inputs-wrapper {
        gap: 6px;
    }
    
    .code-char-input {
        width: 42px;
        height: 42px;
        font-size: 18px !important;
    }
    
    .wizard-card {
        padding: 20px;
    }
}


