* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    background-color: #FE9237;
    padding: 18px 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.navbar nav a:hover {
    opacity: 0.8;
}

.nav-button {
    background-color: #ffffff;
    color: #FE9237 !important;
    padding: 10px 18px;
    border-radius: 8px;
}


/* =========================
   MAIN
========================= */

main {
    min-height: calc(100vh - 140px);
    padding: 40px 0;
}


/* =========================
   FOOTER
========================= */

.footer {
    background-color: #FE9237;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
}

/* =========================
   AUTH PAGES
========================= */

.auth-container {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
}

.auth-card {
    width: 100%;
    max-width: 550px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.10);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.auth-header p {
    color: #777777;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: #FE9237;
    box-shadow: 0 0 0 3px rgba(254, 146, 55, 0.15);
}

.auth-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background-color: #FE9237;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.auth-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
}

.auth-footer p {
    color: #777777;
}

.auth-footer a {
    color: #FE9237;
    text-decoration: none;
    font-weight: 600;
}

/* =========================
   LOGIN PAGE
========================= */

.login-card {
    max-width: 450px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -5px;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #555555;
    cursor: pointer;
}

.remember-me input {
    accent-color: #FE9237;
    cursor: pointer;
}

.forgot-password {
    color: #FE9237;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* =========================
   FLASH MESSAGES
========================= */

.flash-container {
    max-width: 550px;
    margin: 20px auto;
    padding: 0 20px;
}

.flash-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 600;
}

.flash-message.success {
    background-color: #e8f8ee;
    color: #1e7e46;
    border: 1px solid #b7e4c7;
}

.flash-message.error {
    background-color: #fff0f0;
    color: #b42318;
    border: 1px solid #f5c2c0;
}

/* =========================================
   HOME / DASHBOARD
========================================= */

.dashboard-container {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
}


/* Dashboard Header */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin: 0 0 8px;
    font-size: 32px;
    color: #222;
}

.dashboard-header p {
    margin: 0;
    color: #777;
    font-size: 15px;
}


/* Add Task Button */

.add-task-btn {
    display: inline-block;
    background: #FE9237;
    color: white;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s ease;
}

.add-task-btn:hover {
    background: #e97e25;
    transform: translateY(-2px);
}


/* =========================================
   TASK TABLE
========================================= */

.task-table-container {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
}


/* Table Header */

.task-table thead {
    background: #FE9237;
    color: white;
}

.task-table th {
    padding: 17px 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}


/* Table Body */

.task-table td {
    padding: 17px 15px;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 14px;
}

.task-table tbody tr {
    transition: 0.2s ease;
}

.task-table tbody tr:hover {
    background: #fff8f2;
}

.task-table tbody tr:last-child td {
    border-bottom: none;
}


/* =========================================
   STATUS BADGES
========================================= */

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}


/* Pending */

.status-pending {
    background: #fff3cd;
    color: #856404;
}


/* In-progress */

.status-in-progress {
    background: #cfe2ff;
    color: #084298;
}


/* Completed */

.status-completed {
    background: #d1e7dd;
    color: #0f5132;
}


/* Postponed */

.status-postponed {
    background: #e2e3e5;
    color: #41464b;
}


/* =========================================
   ACTION BUTTONS
========================================= */

.task-actions {
    display: flex;
    gap: 8px;
}

.edit-btn,
.delete-btn {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s ease;
}

.edit-btn {
    background: #fff3e8;
    color: #e97e25;
}

.edit-btn:hover {
    background: #FE9237;
    color: white;
}

.delete-btn {
    background: #ffe8e8;
    color: #c62828;
}

.delete-btn:hover {
    background: #c62828;
    color: white;
}


/* =========================================
   NO TASKS
========================================= */

.no-tasks {
    text-align: center;
    padding: 70px 20px;
}

.no-task-icon {
    font-size: 55px;
    margin-bottom: 15px;
}

.no-tasks h2 {
    margin: 0 0 10px;
    color: #333;
}

.no-tasks p {
    color: #777;
    margin-bottom: 25px;
}


/* =========================================
   RESPONSIVE TABLE
========================================= */

@media (max-width: 900px) {

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .task-table-container {
        overflow-x: auto;
    }

    .task-table {
        min-width: 850px;
    }

}

/* =========================================
   CREATE TASK PAGE
========================================= */

.create-task-page {
    width: 100%;
    min-height: calc(100vh - 150px);

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 60px 20px;
    background: #ffffff;
}


/* Main Card */

.create-task-card {
    width: 100%;
    max-width: 760px;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 18px;

    padding: 40px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}


/* Header */

.create-task-header {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 35px;
}


.create-task-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #FE9237;
    color: #ffffff;

    border-radius: 14px;

    font-size: 25px;
    font-weight: bold;
}


.create-task-header h1 {
    margin: 0 0 6px;

    color: #222222;

    font-size: 30px;
}


.create-task-header p {
    margin: 0;

    color: #777777;

    font-size: 15px;
}


/* Form */

.task-form {
    width: 100%;
}


.task-form .form-group {
    width: 100%;

    margin-bottom: 24px;
}


.task-form label {
    display: block;

    margin-bottom: 8px;

    color: #333333;

    font-size: 14px;
    font-weight: 600;
}


.task-form input,
.task-form textarea,
.task-form select {

    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 13px 15px;

    border: 1px solid #dddddd;

    border-radius: 9px;

    background: #ffffff;

    color: #333333;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition: all 0.2s ease;
}


.task-form input {
    height: 48px;
}


.task-form textarea {
    min-height: 140px;

    resize: vertical;
}


.task-form select {
    height: 48px;

    cursor: pointer;
}


/* Focus */

.task-form input:focus,
.task-form textarea:focus,
.task-form select:focus {

    border-color: #FE9237;

    box-shadow: 0 0 0 3px rgba(254, 146, 55, 0.12);
}


/* Buttons */

.task-form-buttons {

    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 12px;

    margin-top: 10px;
}


.cancel-task-btn,
.create-task-btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 22px;

    border-radius: 8px;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition: all 0.2s ease;

    box-sizing: border-box;
}


/* Cancel */

.cancel-task-btn {

    background: #f5f5f5;

    color: #555555;

    border: 1px solid #dddddd;
}


.cancel-task-btn:hover {

    background: #eeeeee;

    color: #333333;
}


/* Create */

.create-task-btn {

    background: #FE9237;

    color: #ffffff;

    border: 1px solid #FE9237;
}


.create-task-btn:hover {

    background: #e77f25;

    border-color: #e77f25;

    transform: translateY(-1px);

    box-shadow: 0 5px 15px rgba(254, 146, 55, 0.25);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .create-task-page {
        padding: 30px 15px;
    }


    .create-task-card {
        padding: 25px 20px;

        border-radius: 14px;
    }


    .create-task-header {
        align-items: flex-start;

        gap: 12px;
    }


    .create-task-icon {
        width: 45px;
        height: 45px;

        border-radius: 10px;

        font-size: 20px;
    }


    .create-task-header h1 {
        font-size: 24px;
    }


    .create-task-header p {
        font-size: 13px;
    }


    .task-form-buttons {

        flex-direction: column-reverse;

        width: 100%;
    }


    .cancel-task-btn,
    .create-task-btn {

        width: 100%;
    }

}

.task-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.edit-btn,
.delete-btn {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s ease;
}

.delete-form {
    margin: 0;
    padding: 0;
}

.delete-btn {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: #ffe8e8;
    color: #c62828;
}

.delete-btn:hover {
    background: #c62828;
    color: white;
}

