/* ======================================
   MODERN RESPONSIVE ADMIN PANEL
   MOBILE-FIRST DESIGN
====================================== */

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

/* BODY */
body{
    font-family: 'Poppins', Arial, sans-serif;
    background: #f1f4f8;
    padding: 15px;
}

/* MAIN CONTAINER */
.container{
    width: 100%;
    max-width: 600px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
}

/* HEADINGS */
h2, h3{
    margin-bottom: 18px;
    text-align: center;
    font-size: 24px;
    color: #222;
}

/* INPUTS */
input, textarea, select{
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border-radius: 10px;
    border: 1.5px solid #c7cdd6;
    font-size: 17px;
    background: #f9fafc;
}

/* BUTTONS */
button, .back-btn{
    width: 100%;
    padding: 15px;
    margin-top: 12px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    background: #007bff;
    color: white !important;
    cursor: pointer;
    transition: 0.2s;
}
button:hover, .back-btn:hover{
    background: #005ac3;
}

/* SUCCESS MESSAGES */
.msg{
    padding: 12px;
    text-align: center;
    background: #d4f8d4;
    border: 1px solid #95e195;
    border-radius: 8px;
    color: #1e8f1e;
    margin-bottom: 20px;
}

/* TABLE WRAPPER — for mobile scroll */
.table-wrapper{
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 10px;
    background: white;
}

/* TABLE */
.table{
    width: 100%;
    border-collapse: collapse;
    min-width: 550px; /* so mobile scrolls it */
}
.table th{
    background: #007bff;
    color: white;
    padding: 12px;
    font-size: 17px;
}
.table td{
    padding: 12px;
    background: #f9fafc;
    font-size: 16px;
    border-bottom: 1px solid #e2e2e2;
}

/* DELETE BUTTON */
.delete-btn{
    padding: 8px 12px;
    background: red;
    color: white !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
}
.delete-btn:hover{
    background: #b30000;
}

/* BACK BUTTON WRAP */
.back-container{
    margin-top: 25px;
    text-align: center;
}

/* MOBILE SETTINGS */
@media(max-width: 480px){
    h2, h3{
        font-size: 22px;
    }
    input, textarea{
        font-size: 16px;
    }
    button{
        font-size: 17px;
        padding: 14px;
    }
}