/* ==============================
   GLOBAL RESET
============================== */
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #f4f6f8;
    color: #333;
    line-height: 1.6;
}

/* ==============================
   CONTAINER
============================== */
.container{
    max-width: 1200px;
    margin: 30px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ==============================
   HEADINGS
============================== */
h2{
    text-align: center;
    margin-bottom: 20px;
    color: #0d6efd;
}

h4{
    margin: 25px 0 10px;
    color: #444;
}

/* ==============================
   FORM ELEMENTS
============================== */
label{
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

input,
select,
textarea{
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    transition: 0.2s;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus{
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13,110,253,0.15);
}

textarea{
    resize: vertical;
    min-height: 90px;
}

/* ==============================
   GRID SYSTEM
============================== */
.row{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* ==============================
   BUTTONS
============================== */
button{
    background: #0d6efd;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s ease-in-out;
}

button:hover{
    background: #084298;
}

/* ==============================
   ALERT / MESSAGE
============================== */
.success-msg{
    background: #d1e7dd;
    color: #0f5132;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    text-align: center;
    font-weight: 600;
}

/* ==============================
   TABLE (ADMIN)
============================== */
table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td{
    border: 1px solid #dee2e6;
    padding: 10px;
    font-size: 13px;
    vertical-align: top;
}

table th{
    background: #0d6efd;
    color: #ffffff;
    text-align: left;
}

table tr:nth-child(even){
    background: #f8f9fa;
}

/* ==============================
   ACTION BUTTONS
============================== */
.action a{
    display: inline-block;
    padding: 6px 10px;
    margin-bottom: 5px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    color: #ffffff;
}

.edit{
    background: #198754;
}

.delete{
    background: #dc3545;
}

/* ==============================
   MOBILE RESPONSIVE
============================== */
@media (max-width: 992px){
    .row{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px){
    .container{
        margin: 15px;
        padding: 18px;
    }

    .row{
        grid-template-columns: 1fr;
    }

    table{
        font-size: 12px;
    }

    table thead{
        display: none;
    }

    table tr{
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 10px;
    }

    table td{
        display: flex;
        justify-content: space-between;
        border: none;
        padding: 6px 0;
    }

    table td::before{
        content: attr(data-label);
        font-weight: 600;
        color: #555;
    }
}

/* ==============================
   EXTRA SMALL DEVICES
============================== */
@media (max-width: 480px){
    h2{
        font-size: 20px;
    }

    button{
        width: 100%;
    }
}
