/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #050505;
    color: #fff;
    overflow-x: hidden;
}


/* ==========================================
   MAIN LAYOUT
========================================== */

.admin-page {
    min-height: 100vh;
}


/* ==========================================
   SIDEBAR
========================================== */

.admin-sidebar {
    width: 280px;
    height: 100vh;

    position: fixed;
    top: 0;
    left: 0;

    background: #111;

    border-right: 1px solid #252525;

    padding: 28px 20px;

    overflow-y: auto;

    z-index: 1000;

    transition: .3s ease;
}


/* ==========================================
   LOGO
========================================== */

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 8px;

    margin-bottom: 35px;
}

.logo-circle {
    width: 52px;
    height: 52px;

    border-radius: 50%;

    background: #0B5ED7;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 19px;
    font-weight: 700;

    flex-shrink: 0;
}

.logo-text h2 {
    font-size: 16px;
    line-height: 1.3;
}

.logo-text p {
    color: #D4AF37;
    font-size: 12px;
}


/* ==========================================
   SIDEBAR MENU
========================================== */

.admin-menu {
    list-style: none;
}

.admin-menu li {
    margin-bottom: 8px;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 48px;

    padding: 12px 15px;

    border-radius: 10px;

    color: #aaa;

    text-decoration: none;

    font-size: 14px;

    transition: .3s ease;
}

.admin-menu li a i {
    width: 21px;
    text-align: center;
}

.admin-menu li a:hover {
    background: #181818;
    color: #fff;
}

.admin-menu li.active a {
    background: #0B5ED7;
    color: #fff;
}

.admin-menu li.logout {
    margin-top: 30px;

    padding-top: 20px;

    border-top: 1px solid #252525;
}


/* ==========================================
   MAIN CONTENT
========================================== */

.admin-main {
    width: calc(100% - 280px);

    margin-left: 280px;

    min-height: 100vh;

    padding: 40px;
}


/* ==========================================
   MOBILE MENU BUTTON
========================================== */

.menu-toggle {
    display: none;

    position: fixed;

    top: 18px;
    left: 18px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 9px;

    background: #0B5ED7;

    color: #fff;

    font-size: 19px;

    cursor: pointer;

    z-index: 2000;
}


/* ==========================================
   PAGE HEADER
========================================== */

.page-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;

    font-weight: 700;
}

.page-header p {
    color: #888;

    font-size: 13px;

    margin-top: 6px;
}

.back-btn {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 11px 17px;

    background: #181818;

    border: 1px solid #292929;

    border-radius: 9px;

    color: #ddd;

    text-decoration: none;

    font-size: 12px;

    transition: .3s ease;
}

.back-btn:hover {
    background: #0B5ED7;

    border-color: #0B5ED7;

    color: #fff;
}


/* ==========================================
   FORM CARD
========================================== */

.job-form-card {
    max-width: 1000px;

    background: #111;

    border: 1px solid #252525;

    border-radius: 17px;

    padding: 30px;
}


/* ==========================================
   FORM TITLE
========================================== */

.form-title {
    display: flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 25px;

    margin-bottom: 28px;

    border-bottom: 1px solid #252525;
}

.form-icon {
    width: 52px;
    height: 52px;

    border-radius: 12px;

    background: #0B5ED7;

    display: flex;

    justify-content: center;
    align-items: center;

    font-size: 20px;
}

.form-title h2 {
    font-size: 19px;
}

.form-title p {
    color: #777;

    font-size: 12px;

    margin-top: 3px;
}


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

#jobForm {
    width: 100%;
}

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

.form-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #ddd;

    font-size: 13px;

    font-weight: 500;
}

.form-group label span {
    color: #ff4d4d;
}


/* ==========================================
   INPUTS
========================================== */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid #303030;

    border-radius: 9px;

    outline: none;

    background: #181818;

    color: #fff;

    font-family: 'Poppins', sans-serif;

    font-size: 13px;

    transition: .3s ease;
}

.form-group input,
.form-group select {
    height: 48px;

    padding: 0 15px;
}

.form-group textarea {
    padding: 14px 15px;

    resize: vertical;

    min-height: 150px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #181818;

    color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0B5ED7;

    box-shadow:
        0 0 0 3px rgba(11, 94, 215, .12);
}


/* ==========================================
   INPUT WITH ICON
========================================== */

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;

    left: 15px;

    top: 50%;

    transform: translateY(-50%);

    color: #0B5ED7;

    pointer-events: none;
}

.input-with-icon input {
    padding-left: 43px;
}


/* ==========================================
   DATE INPUT
========================================== */

input[type="date"] {
    color-scheme: dark;
}


/* ==========================================
   FORM ACTIONS
========================================== */

.form-actions {
    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 12px;

    padding-top: 10px;

    margin-top: 10px;

    border-top: 1px solid #252525;
}

.cancel-btn,
.post-job-btn {
    min-height: 46px;

    padding: 0 20px;

    border-radius: 9px;

    font-family: 'Poppins', sans-serif;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition: .3s ease;
}

.cancel-btn {
    background: #181818;

    color: #aaa;

    border: 1px solid #303030;
}

.cancel-btn:hover {
    color: #fff;

    border-color: #555;
}

.post-job-btn {
    background: #0B5ED7;

    color: #fff;

    border: 1px solid #0B5ED7;

    box-shadow:
        0 8px 20px rgba(11, 94, 215, .18);
}

.post-job-btn:hover {
    background: #0849A8;

    border-color: #0849A8;

    transform: translateY(-2px);
}

.cancel-btn i,
.post-job-btn i {
    margin-right: 7px;
}


/* ==========================================
   FOOTER
========================================== */

.admin-footer {
    max-width: 1000px;

    margin-top: 35px;

    padding: 25px 0;

    border-top: 1px solid #252525;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    color: #777;

    font-size: 11px;
}

.admin-footer h3 {
    color: #fff;

    font-size: 14px;
}

.admin-footer p {
    margin-top: 3px;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 992px) {

    .menu-toggle {
        display: flex;

        justify-content: center;
        align-items: center;
    }

    .admin-sidebar {
        left: -290px;
    }

    .admin-sidebar.active {
        left: 0;
    }

    .admin-main {
        width: 100%;

        margin-left: 0;

        padding: 90px 25px 30px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {

    .admin-main {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .page-header h1 {
        font-size: 23px;
    }

    .back-btn {
        width: 100%;

        justify-content: center;
    }

    .job-form-card {
        padding: 20px 16px;
    }

    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .form-title {
        align-items: flex-start;
    }

    .form-title h2 {
        font-size: 17px;
    }

    .form-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }

    .cancel-btn,
    .post-job-btn {
        width: 100%;
    }

    .admin-footer {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* ==========================================
   SMALL PHONES
========================================== */

@media (max-width: 400px) {

    .admin-sidebar {
        width: 270px;
    }

    .admin-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .job-form-card {
        padding: 16px 12px;
    }

    .form-title {
        gap: 10px;
    }

    .form-icon {
        width: 45px;
        height: 45px;
    }

}