/* recruitment_site/style.css */

:root {
    --primary-hue: 164;
    --primary-sat: 75%;
    --primary-light: 20%;
    
    --primary: #0d5c46;
    --primary-hover: #0a4837;
    --primary-alpha: rgba(13, 92, 70, 0.1);
    
    --dark: #12131a;
    --light: #ffffff;
    --text-main: #2d3142;
    --text-muted: #737b8c;
    --border-color: #e2e8f0;
    --bg-light: #f7fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    
    --glass-shadow: 0 8px 32px 0 rgba(13, 92, 70, 0.06);
    --card-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f3f5f9;
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 70px;
    display: flex;
    align-items: center;
}

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

.brand {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-accent {
    color: var(--primary);
}

.tag-status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--primary-alpha);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Main Layout */
.main-container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* View Sections */
.view-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.view-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 40px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--dark) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Search Bar */
.search-bar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    box-shadow: var(--glass-shadow);
    gap: 8px;
    max-width: 650px;
    margin: 0 auto;
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.search-icon {
    color: var(--text-muted);
}

.search-input-group input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-main);
}

.filter-input-group {
    border-left: 1px solid var(--border-color);
    padding: 0 12px;
    display: flex;
    align-items: center;
}

.filter-input-group select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    padding-right: 16px;
}

/* Section Titles */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Job Grid & Cards */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.job-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    border-color: hsla(var(--primary-hue), var(--primary-sat), var(--primary-light), 0.3);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.merchant-mini-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.merchant-avatar-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-alpha);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid var(--border-color);
    object-fit: cover;
}

.merchant-name-mini {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.badge-type {
    font-size: 11px;
    font-weight: 600;
    background-color: var(--primary-alpha);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 8px;
}

.job-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item svg {
    color: var(--text-muted);
}

.job-card-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-salary {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.btn-card-action {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.job-card:hover .btn-card-action {
    color: var(--primary-hover);
    transform: translateX(4px);
}

/* Spinner & Loading */
.loading-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.05);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 16px;
}

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

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 16px;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13px;
    max-width: 400px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

/* Merchant View Header Card */
.merchant-header-card {
    background: linear-gradient(135deg, #093b2d 0%, #0d5c46 100%);
    border-radius: var(--radius-md);
    padding: 32px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    box-shadow: var(--glass-shadow);
}

.merchant-profile-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.merchant-logo-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.merchant-logo-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.merchant-info-text h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 4px;
}

.merchant-info-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.btn-back {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-back:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content-card {
    background: white;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    animation: modalSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.btn-close-modal {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.btn-close-modal:hover {
    color: var(--dark);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.meta-badge {
    font-size: 11px;
    font-weight: 600;
    background-color: var(--bg-light);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.modal-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.modal-description-wrapper h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.formatted-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
    white-space: pre-line;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Forms */
.form-container-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 24px;
}

.btn-back-form {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.btn-back-form:hover {
    color: var(--dark);
}

.form-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

.form-header .subtitle {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.steps-indicator {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.step {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 12px;
}

.step.active {
    color: var(--primary);
}

.step.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.form-step-content {
    display: none;
}

.form-step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-alpha);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.file-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    background-color: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.file-dropzone:hover {
    border-color: var(--primary);
    background-color: var(--primary-alpha);
}

.file-dropzone svg {
    color: var(--text-muted);
    transition: var(--transition);
}

.file-dropzone:hover svg {
    color: var(--primary);
}

.dropzone-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.hidden-file-input {
    display: none;
}

.file-selected-name {
    display: block;
    font-size: 12px;
    color: var(--primary);
    margin-top: 6px;
    font-weight: 600;
}

.error-msg {
    color: #e53e3e;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.form-actions-step {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

/* Success Card */
.success-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
    max-width: 550px;
    margin: 40px auto 0;
    box-shadow: var(--card-shadow);
}

.success-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f0fdf4;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-card h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.success-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.success-details {
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 32px;
    font-size: 13px;
    text-align: left;
}

.success-details p {
    margin-bottom: 8px;
}

.success-details p:last-child {
    margin-bottom: 0;
}

.success-actions {
    display: flex;
    justify-content: center;
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    background-color: white;
    margin-top: auto;
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 32px;
    }
    
    .search-bar {
        flex-direction: column;
        padding: 16px;
    }
    
    .filter-input-group {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-top: 12px;
        padding-left: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .merchant-header-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .btn-back {
        width: 100%;
        justify-content: center;
    }
    
    .main-container {
        padding: 24px 16px;
    }
}

.nav-link:hover {
    color: var(--primary) !important;
}
