/* =========================================================
   GLOBAL PAGE WRAPPER
   ---------------------------------------------------------
   Keeps everything centered and readable
========================================================= */

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px;
}


/* =========================================================
   TOP ACTION BAR (Dashboard / User / Logout)
   ---------------------------------------------------------
   - Uses grid so buttons always line up
   - Height is controlled by padding + font-size
========================================================= */

.top-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 buttons */
    gap: 8px;
    margin-bottom: 20px;
}

/* Individual top action buttons */
.action-btn {
    display: block;
    text-align: center;

    /* HEIGHT CONTROL (top bar buttons) */
    padding: 10px 6px;      /* ↑ decrease for flatter, ↑ increase for taller */
    font-size: 14px;

    text-decoration: none;
    background: #eeeeee;
    color: #000;
    border-radius: 8px;
    font-weight: bold;
}

.action-btn:hover {
    background: #dddddd;
}

/* Desktop: slightly bigger buttons */
@media (min-width: 901px) {
    .top-actions {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        gap: 12px;
    }

    .action-btn {
        font-size: 15px;
        padding: 12px;
    }
}


/* =========================================================
   HEADER (Company name + logo)
   ---------------------------------------------------------
   Logo is centered
========================================================= */

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

.header img.logo {
    display: block;
    margin: 0 auto 10px auto;
    max-width: 220px;
    height: auto;
}

.header h1 {
    margin: 0 0 8px 0;
}


/* =========================================================
   DASHBOARD MENU GRID
   ---------------------------------------------------------
   - Controls number of buttons per row
   - Spacing between buttons
========================================================= */

.menu {
    display: grid;

    /* SPACE BETWEEN BUTTON BLOCKS */
    gap: 10px;

    max-width: 1000px;
    margin: 0 auto;
}


/* =========================================================
   MENU ITEM WRAPPER
   ---------------------------------------------------------
   Holds:
   - the button
   - the description text
========================================================= */

.menu-item {
    text-align: center; /* <-- THIS centers the description text */
}


/* =========================================================
   MAIN DASHBOARD BUTTONS
   ---------------------------------------------------------
   THIS IS WHERE BUTTON HEIGHT IS CONTROLLED
========================================================= */

.menu-item a {
    display: flex;
    align-items: center;
    justify-content: center;

    /* HEIGHT CONTROL (PRIMARY) */
    min-height: 56px;        /* ↑ increase = taller buttons */
                               /* ↓ decrease = flatter buttons */

    /* HEIGHT CONTROL (SECONDARY) */
    padding: 12px 18px;      /* top/bottom | left/right */

    background: #f2f2f2;
    color: #000;
    text-decoration: none;
    font-weight: bold;

    border-radius: 12px;

    transition: background 0.2s ease, transform 0.1s ease;
}

.menu-item a:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}


/* =========================================================
   DESCRIPTION TEXT BELOW BUTTON
   ---------------------------------------------------------
   - Smaller
   - Centered
========================================================= */

.menu-item small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #555;
    line-height: 1.3;
}


/* =========================================================
   MOBILE LAYOUT (phones)
   ---------------------------------------------------------
   - 2 buttons per row
   - Taller buttons for touch
========================================================= */

@media (max-width: 600px) {
    .menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-item a {
        min-height: 48px;     /* Mobile touch-friendly */
        padding: 14px;
        font-size: 15px;
    }

    .menu-item small {
        font-size: 12px;
    }
}


/* =========================================================
   TABLET LAYOUT
   ---------------------------------------------------------
   - 3 buttons per row
========================================================= */

@media (min-width: 601px) and (max-width: 900px) {
    .menu {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================================================
   DESKTOP LAYOUT
   ---------------------------------------------------------
   - 5 buttons per row
   - Slightly taller buttons
========================================================= */

@media (min-width: 901px) {
    .menu {
        grid-template-columns: repeat(5, 1fr);
    }

    .menu-item a {
        min-height: 45px;     /* Desktop button height */
        padding: 8px 22px;
        font-size: 16px;
    }

    .menu-item small {
        font-size: 13px;
    }
}
/* =========================================================
   PAGE CONTENT (inside pages like jobcards)
========================================================= */

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

.page-content h2 {
    text-align: center;
    margin-bottom: 6px;
}

.page-description {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
}


/* =========================================================
   FORM STRUCTURE
========================================================= */

.jobcard-form {
    background: #fafafa;
    padding: 16px;
    border-radius: 12px;
}

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

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}


/* =========================================================
   FORM ACTION BUTTONS
========================================================= */

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-primary {
    padding: 10px 16px;
    background: #4a90e2;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    padding: 10px 16px;
    background: #ddd;
    color: #000;
    border-radius: 8px;
    text-decoration: none;
}
