/* public/assets/css/style.css */

/* 1. Palet Warna & Font MD3 */
:root {
    --md-sys-color-primary: #095D40;
    /* Warna Hijau Anda */
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #9EF2BD;
    --md-sys-color-on-primary-container: #00210F;
    --md-sys-color-secondary: #4E6354;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #D0E8D5;
    --md-sys-color-on-secondary-container: #0B1F13;
    --md-sys-color-error: #B3261E;
    --md-sys-color-on-error: #FFFFFF;
    --md-sys-color-background: #FBFDF8;
    --md-sys-color-on-background: #191C1A;
    --md-sys-color-surface: #FBFDF8;
    --md-sys-color-on-surface: #191C1A;
    --md-sys-color-surface-variant: #DDE5DB;
    --md-sys-color-on-surface-variant: #414942;
    --md-sys-color-outline: #717972;

    --md-sys-font-family: 'Roboto', 'Google Sans', sans-serif;
}

/* 2. Base Styles */
body {
    font-family: var(--md-sys-font-family);
    margin: 0;
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-weight: 500;
}

a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 3. Layout */
.container {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex-grow: 1;
    box-sizing: border-box;
}

.card {
    background-color: var(--md-sys-color-surface);
    border-radius: 12px;
    border: 1px solid var(--md-sys-color-outline);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--md-sys-color-on-surface-variant);
    background-color: var(--md-sys-color-surface-variant);
}

/* 4. Komponen MD3 */
.top-app-bar {
    background-color: var(--md-sys-color-surface);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--md-sys-color-outline);
}

.top-app-bar .logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--md-sys-color-primary);
}

.md-button {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.md-button:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.md-button:disabled {
    background-color: var(--md-sys-color-outline);
    cursor: not-allowed;
}

.text-field {
    margin-bottom: 1.5rem;
}

.text-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 8px;
}

.text-field input[type="text"],
.text-field input[type="email"],
.text-field input[type="tel"],
.text-field input[type="url"],
.text-field input[type="password"],
.text-field textarea {
    width: 100%;
    padding: 16px 12px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 8px;
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    font-size: 1rem;
    box-sizing: border-box;
}

.text-field input:focus,
.text-field textarea:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 2px var(--md-sys-color-primary-container);
}

.text-field input[type="file"] {
    padding: 12px;
    border: 1px dashed var(--md-sys-color-outline);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

/* Kartu Lowongan */
.job-card {
    display: block;
    text-decoration: none;
}

.job-card .card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.job-card .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.job-card .job-title {
    font-size: 1.25rem;
    color: var(--md-sys-color-primary);
}

.job-card .job-details {
    color: var(--md-sys-color-on-surface-variant);
}

/* Pesan Status */
.status-message {
    text-align: center;
    font-weight: 500;
    margin-top: 1rem;
}

.status-message.success {
    color: var(--md-sys-color-primary);
}

.status-message.error {
    color: var(--md-sys-color-error);
}