* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        Arial,
        sans-serif;

    background: #f5f7fb;

    color: #172033;
}

a {
    text-decoration: none;

    color: inherit;
}


/* TOP BAR */

.topbar {
    min-height: 65px;

    padding: 0 30px;

    background: #0c1733;

    color: white;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.top-right {
    display: flex;

    align-items: center;

    gap: 20px;
}

.bell {
    position: relative;

    font-size: 22px;
}

.bell span {
    position: absolute;

    top: -9px;
    right: -10px;

    width: 19px;
    height: 19px;

    border-radius: 50%;

    background: #ef4444;

    color: white;

    font-size: 11px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* CONTAINER */

.container {
    max-width: 1150px;

    margin: auto;

    padding: 35px 20px;
}

.page-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 30px;

    gap: 20px;
}

.page-header h1 {
    margin: 0;

    color: #0c1733;
}

.page-header p {
    color: #697386;
}


/* BUTTON */

.btn {
    display: inline-block;

    border: 0;

    background: #0c1733;

    color: white;

    padding: 12px 18px;

    border-radius: 8px;

    font-weight: 700;

    cursor: pointer;
}

.secondary-btn {
   display: inline-block;
    margin: 0;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #1E2E5C;
    border-radius: 6px;
    color: #1E2E5C;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    position: static;
    float: none;
}

.secondary-btn:hover {
    background: #1E2E5C;
    color: #ffffff;
}

/* STATS */

.stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 35px;
}

.stat {
    background: white;

    padding: 25px;

    border-radius: 14px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,.05);
}

.stat strong {
    display: block;

    font-size: 30px;

    color: #0c1733;
}

.stat span {
    color: #697386;
}


/* TASKS */

.tasks {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.task {
    background: white;

    padding: 20px;

    border-radius: 14px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,.05);
}

.task h3 {
    margin: 0 0 8px;

    color: #0c1733;
}

.task p {
    margin: 0;

    color: #697386;
}

.task-right {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    justify-content: flex-end;
}


/* STATUS */

.status {
    padding: 6px 10px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 700;
}

.status.pending {
    background: #fff3d6;

    color: #8a5a00;
}

.status.in-progress {
    background: #e6efff;

    color: #2451a6;
}

.status.completed {
    background: #dcf6e8;

    color: #176c3c;
}


/* STATUS FORM */

.status-form {
    display: flex;

    gap: 7px;

    flex-wrap: wrap;
}

.status-form select,
.status-form input {
    border: 1px solid #d8deea;

    padding: 8px;

    border-radius: 7px;
}

.small-btn {
    border: 0;

    background: #f5b83d;

    color: #0c1733;

    padding: 9px 13px;

    border-radius: 7px;

    font-weight: 700;

    cursor: pointer;
}


/* LOGIN */

.login-page {
    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;
}

.login-box {
    width: 100%;

    max-width: 400px;

    background: white;

    padding: 35px;

    border-radius: 16px;

    box-shadow:
        0 15px 45px
        rgba(0,0,0,.08);
}

.login-box h1 {
    margin-top: 0;

    color: #0c1733;
}

.login-box p {
    color: #697386;
}

.login-box form {
    display: flex;

    flex-direction: column;

    gap: 18px;
}

label {
    display: flex;

    flex-direction: column;

    gap: 7px;

    font-weight: 700;

    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;

    padding: 11px;

    border: 1px solid #d8deea;

    border-radius: 8px;

    font: inherit;
}

.error {
    background: #ffe5e5;

    color: #a51d1d;

    padding: 12px;

    border-radius: 8px;

    margin-bottom: 15px;
}


/* FORM PAGE */

.form-container {
    max-width: 700px;

    margin: auto;

    padding: 40px 20px;
}

.form-card {
    background: white;

    padding: 30px;

    border-radius: 16px;
}

.form-card h1 {
    color: #0c1733;
}

.form-card form {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


/* NOTIFICATIONS */

.notifications {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.notification {
    background: white;

    padding: 18px;

    border-radius: 12px;

    display: flex;

    gap: 15px;

    border-left: 4px solid #d8deea;
}

.notification.unread {
    border-left-color: #f5b83d;

    background: #fffdf5;
}

.notification-icon {
    font-size: 22px;
}

.notification small {
    display: block;

    margin-top: 7px;

    color: #8a93a4;
}

.empty {
    background: white;

    padding: 35px;

    text-align: center;

    border-radius: 12px;

    color: #697386;
}


/* MOBILE */

@media (max-width: 700px) {

    .topbar {
        padding: 0 15px;
    }

    .top-right {
        gap: 10px;

        font-size: 13px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .task {
        flex-direction: column;
    }

    .task-right {
        justify-content: flex-start;
    }

}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-header h1 {
    margin: 0 0 5px;
}

.page-header p {
    margin: 0;
    color: #666;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #1E2E5C;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert.success {
    background: #e8f7ed;
    color: #176b35;
}

.alert.error {
    background: #fdecec;
    color: #a12626;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background: #f7f7f7;
    font-size: 13px;
}

@media (max-width: 800px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        align-items: flex-start;
    }
}

.task-updates {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.task-updates h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #1E2E5C;
}

.task-update {
    background: #f8f9fb;
    border-left: 3px solid #1E2E5C;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.task-update-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 6px;
}

.task-update-header strong {
    font-size: 13px;
    color: #222;
}

.task-update-header span {
    font-size: 12px;
    color: #777;
}

.task-update p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.no-updates {
    margin: 0;
    font-size: 13px;
    color: #888;
}

.task-main {
    flex: 1;
    min-width: 0;
}

.task-due {
    margin-top: 8px !important;
    font-size: 13px;
}

.task-updates {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.task-updates h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #1E2E5C;
}

.task-update {
    background: #f8f9fb;
    border-left: 3px solid #1E2E5C;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.task-update-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 6px;
}

.task-update-header strong {
    font-size: 13px;
    color: #222;
}

.task-update-header span {
    font-size: 12px;
    color: #777;
}

.task-update p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.no-updates {
    margin: 0;
    font-size: 13px;
    color: #888;
}

@media (max-width: 700px) {

    .task-main {
        width: 100%;
    }

    .task-updates {
        width: 100%;
    }

    .task-update-header {
        flex-direction: column;
        gap: 4px;
    }

}

/* =========================================================
   TEAM OVERVIEW
========================================================= */

.team-overview {
    margin-bottom: 35px;
}

.team-overview .page-header {
    margin-bottom: 15px;
}

.team-overview table {
    width: 100%;
}

.team-overview th,
.team-overview td {
    padding: 13px 15px;
}

.team-overview th {
    white-space: nowrap;
}

@media (max-width: 700px) {

    .team-overview {
        overflow-x: auto;
    }

    .team-overview .table-wrapper {
        overflow-x: auto;
    }

    .team-overview table {
        min-width: 600px;
    }

}
/* Assign Task page heading */

.form-page-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.form-page-title {
    flex: 1;
}

.form-page-title h1 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #1E2E5C;
}

.form-page-title p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.form-page-header .secondary-btn {
    flex-shrink: 0;
    position: static;
    text-decoration: none;
}


/* Mobile */

@media (max-width: 700px) {

    .form-page-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 18px;
    }

    .form-page-header .secondary-btn {
        align-self: flex-start;
    }

}

/* =========================================================
   ASSIGN TASK PAGE HEADER
   ========================================================= */

.assign-task-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 0;
}

.assign-task-heading {
    margin: 0;
    padding: 0;
}

.assign-task-heading h1 {
    margin: 0 0 6px 0;
    padding: 0;
    font-size: 28px;
    line-height: 1.2;
    color: #1E2E5C;
}

.assign-task-heading p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #777;
}

.assign-task-back {
    margin-left: auto;
    padding: 0;
    flex-shrink: 0;
}

.assign-task-back a {
    display: inline-block;
    position: static !important;
    float: none !important;
    margin: 0 !important;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #1E2E5C;
    border-radius: 6px;
    color: #1E2E5C;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.assign-task-back a:hover {
    background: #1E2E5C;
    color: #ffffff;
}


/* Mobile */

@media (max-width: 700px) {

    .assign-task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .assign-task-back {
        margin-left: 0;
    }

}

.employee-heading-right a:hover {
    background: #1E2E5C;
    color: #ffffff;
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    max-width: 180px;
    height: auto;
    display: inline-block;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 30px;
    width: auto;
    display: block;
    object-fit: contain;
    background: #ffffff;
    padding: 3px 6px;
    border-radius: 3px;
}

.task-priority {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.priority-high {
    background: #fde8e8;
    color: #b42318;
}

.priority-medium {
    background: #fff4d6;
    color: #9a6700;
}

.priority-low {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Task Filters */

.task-filters {
    margin-bottom: 25px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.task-filters form {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.filter-group input,
.filter-group select {
    height: 40px;
    padding: 8px 10px;
    border: 1px solid #d5d9df;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #1E2E5C;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-actions .btn,
.filter-actions .secondary-btn {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

@media (max-width: 700px) {

    .task-filters form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
        min-width: 0;
    }

    .filter-actions {
        width: 100%;
    }

    .filter-actions .btn,
    .filter-actions .secondary-btn {
        flex: 1;
    }
}

/* =========================================================
   NOTIFICATIONS
========================================================= */

.notifications {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.notification.unread {
    border-left: 4px solid #1E2E5C;
    background: #f5f7fb;
}

.notification.read {
    background: #ffffff;
}

.notification-icon {
    font-size: 18px;
    line-height: 1.4;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.notification.unread .notification-message {
    font-weight: 600;
}

.notification-content small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 12px;
}

.notification-status {
    display: inline-block;
    margin-top: 7px;
    padding: 3px 7px;
    border-radius: 4px;
    background: #e8eef8;
    color: #1E2E5C;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 700px) {

    .notification {
        padding: 13px;
    }

    .page-header {
        gap: 15px;
    }

    .page-header form {
        width: 100%;
    }

    .page-header form button {
        width: 100%;
    }

}