* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fffef5;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 210px;
    background-color: #1a253a;
    color: white;
    display: flex;
    flex-direction: column;
    padding-top: 30px;
    flex-shrink: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo-area {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 15px;
}

.logo-area img {
    width: 70px;
    height: auto;
}

.menu {
    list-style: none;
    flex: 1;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.menu a:hover {
    background-color: #e67e22;
    border-left-color: #ffd700;
}

.menu a.active {
    background-color: #e67e22;
    border-left-color: #ffd700;
}

.menu a i {
    font-size: 16px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 210px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #fffef5;
}

/* ===== HEADER ===== */
.top-bar {
    background-color: #ffd700;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.logout-btn {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.logout-btn:hover {
    background-color: #d35400;
}

/* ===== CONTENT AREA ===== */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* ===== FORM STYLING ===== */
.form-card {
    background-color: white;
    border: 2px solid #e67e22;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-card h2 {
    color: #1a253a;
    margin-bottom: 25px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #e67e22;
    box-shadow: 0 0 5px rgba(230, 126, 34, 0.3);
    background-color: #fff;
}

.form-group input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-save {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    flex: 1;
}

.btn-save:hover {
    background-color: #d35400;
}

.btn-clear {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    flex: 1;
}

.btn-clear:hover {
    background-color: #7f8c8d;
}

.btn-back {
    background-color: #95a5a6;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.btn-back:hover {
    background-color: #7f8c8d;
}

/* ===== TABLE STYLING ===== */
.table-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table-header {
    background-color: #ffd700;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h2 {
    color: #000;
    margin: 0;
    font-size: 18px;
}

.btn-add {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-add:hover {
    background-color: #d35400;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background-color: #ffd700;
}

table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: #000;
    font-size: 13px;
}

table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #333;
}

table tbody tr:hover {
    background-color: #f9f9f9;
}

/* ===== ACTION BUTTONS ===== */
.btn-action {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s;
    margin-right: 5px;
}

.btn-action:hover {
    background-color: #d35400;
}

.btn-delete {
    background-color: #e74c3c;
}

.btn-delete:hover {
    background-color: #c0392b;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #ffd700;
    text-align: center;
    padding: 20px;
    color: #000;
    font-weight: 600;
    margin-top: auto;
    border-top: 1px solid #e6b800;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding-top: 20px;
    }

    .logo-area img {
        width: 45px;
    }

    .menu a {
        justify-content: center;
        padding: 16px 10px;
    }

    .menu a span {
        display: none;
    }

    .main-content {
        margin-left: 60px;
    }

    .content {
        padding: 20px;
    }

    .form-card {
        max-width: 100%;
        padding: 20px;
    }

    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .table-header h2 {
        font-size: 16px;
    }

    table thead th {
        padding: 10px;
        font-size: 12px;
    }

    table tbody td {
        padding: 8px;
        font-size: 11px;
    }

    .btn-action {
        padding: 4px 8px;
        font-size: 11px;
        margin-right: 2px;
    }
}
