/* ========== GLOBAL ========== */
html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #f4f6f8;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1;
}

/* ========== HEADER ========== */
.header {
    background: #1b263b;
    color: white;
    padding: 16px 30px;
    display: flex;
    align-items: center;
}

.header-logo {
    font-size: 22px;
    font-weight: 600;
}
.header-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.header-nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.header-nav a:hover {
    text-decoration: underline;
}
.header-user {
    color: #cbd5e1;
    margin-right: 12px;
    font-size: 14px;
}


/* ========== FOOTER ========== */
.footer {
    background: #1b263b;
    color: #cbd5e1;
    text-align: center;
    padding: 18px;
    font-size: 14px;
}

/* ========== PUBLIC PAGES ========== */
.public-content {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

/* ========== CARD ========== */
.card {
    background: white;
    padding: 30px 40px;
    width: 450px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* ========== ADMIN LAYOUT ========== */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 120px); /* header + footer */
}

.admin-sidebar {
    width: 220px;
    background: #0f172a;
}

.admin-sidebar a {
    display: block;
    padding: 14px 20px;
    color: #cbd5e1;
    text-decoration: none;
}

.admin-sidebar a:hover {
    background: #1e293b;
    color: white;
}

.admin-content {
    flex: 1;
    padding: 30px 40px;
}

.admin-content .card {
    width: 100%;
}

/* ===== AUTH WRAPPER ===== */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px); /* full height minus header + footer */
    background: #f4f6f8;
    padding: 20px;
}

/* ===== CARD ===== */
.auth-wrapper .card {
    background: #fff;
    padding: 40px 40px; /* increase right/left padding */
    width: 450px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

/* ===== TITLE ===== */
.auth-wrapper .card .title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1b263b;
}

/* ===== FORM LABEL ===== */
.auth-wrapper .card .label {
    display: block;
    text-align: left;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

/* ===== INPUT FIELDS ===== */
.auth-wrapper .card .input-text {
    width: 100%;
    padding: 10px 14px; /* add more horizontal padding */
    margin-bottom: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box; /* ensure padding doesn’t break width */
}

.auth-wrapper .card .input-text:focus {
    border-color: #1b263b;
    outline: none;
}

/* ===== SUBMIT BUTTON ===== */
.auth-wrapper .card .btn-submit {
    width: 100%;
    padding: 12px;
    background: #1b263b;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-wrapper .card .btn-submit:hover {
    background: #0f172a;
}

/* ===== ERROR MESSAGE ===== */
.auth-wrapper .card .error {
    background: #ffe0e0;
    color: #b00000;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 14px;
    text-align: left;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 30px 40px;
    max-width: 1000px; /* optional: limit width for large screens */
    margin: 0 auto; /* center content */
}

/* Optional: card styling for dashboard pages */
.page-content .card {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

/* ===== PAGE CONTENT FOR ADMIN PAGES ===== */
.page-content {
    padding: 30px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== CARD FOR ADMIN PAGES ===== */
.page-content .card {
    background: #fff;
    padding: 40px 30px; /* more padding like login/register */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

/* ===== FORM LABELS ===== */
.page-content .card label {
    display: block;
    text-align: left;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

/* ===== INPUT FIELDS ===== */
.page-content .card input[type="text"],
.page-content .card input[type="email"],
.page-content .card input[type="password"],
.page-content .card input[type="file"] {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.page-content .card input[type="text"]:focus,
.page-content .card input[type="email"]:focus,
.page-content .card input[type="password"]:focus,
.page-content .card input[type="file"]:focus {
    border-color: #1b263b;
    outline: none;
}

/* ===== BUTTONS ===== */
.page-content .card button {
    width: 100%;
    padding: 12px;
    background: #1b263b;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.page-content .card button:hover {
    background: #0f172a;
}

/* ===== HEADINGS ===== */
.page-content h1, 
.page-content h2 {
    color: #1b263b;
    margin-bottom: 20px;
}

/* ===== SPACING BETWEEN JOB ITEMS ===== */
.page-content .job-item {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.page-content .job-item:last-child {
    border-bottom: none;
}

