/* ===============================
   GLOBAL RESET & FONT
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    min-height: 100vh;
    color: #333;
}

/* ===============================
   LOGIN PAGE
================================ */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    background: #fff;
    width: 360px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #1e3c72;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.login-box input:focus {
    outline: none;
    border-color: #1e3c72;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #1e3c72;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.login-box button:hover {
    background: #16305c;
}

.error-msg {
    background: #ffe0e0;
    color: #b10000;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

/* ===============================
   DASHBOARD LAYOUT
================================ */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 230px;
    background: #1e3c72;
    color: #fff;
    padding: 20px;
}

.sidebar h3 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
}

.sidebar a {
    display: block;
    padding: 12px 15px;
    margin-bottom: 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.2);
}

/* Main content */
.main-content {
    flex: 1;
    background: #f4f6f9;
    padding: 30px;
}

.main-content h2 {
    margin-bottom: 25px;
    color: #1e3c72;
}

/* ===============================
   DASHBOARD CARDS
================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 10px;
    color: #1e3c72;
}

.card p {
    color: #666;
    font-size: 14px;
}

.card a {
    display: inline-block;
    margin-top: 12px;
    color: #1e3c72;
    text-decoration: none;
    font-weight: 500;
}


/* folders inside admin css */

/* ===== BASIC RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f4f6f9;
    color: #333;
}

/* ===== PAGE WRAPPER ===== */
.main-content {
    padding: 25px;
}

.main-content h2 {
    margin-bottom: 15px;
    color: #1f2937;
}

/* ===== ADD BUTTON ===== */
.add-btn {
    display: inline-block;
    margin-bottom: 15px;
    padding: 10px 16px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

.add-btn:hover {
    background: #1d4ed8;
}

/* ===== TABLE STYLE ===== */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

table th {
    background: #1f2937;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

table tr:hover {
    background: #f1f5f9;
}

/* ===== ACTION LINKS ===== */
table a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

table a:hover {
    text-decoration: underline;
}

/* ===== FORMS (ADD / EDIT) ===== */
form {
    background: #fff;
    max-width: 500px;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 11px;
    margin-bottom: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

form textarea {
    resize: vertical;
}

form button {
    background: #16a34a;
    color: #fff;
    padding: 11px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

form button:hover {
    background: #15803d;
}

/* ===== DELETE CONFIRM LOOK ===== */
.delete {
    color: #dc2626 !important;
}

.delete:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media(max-width: 768px) {
    table {
        font-size: 13px;
    }

    form {
        width: 100%;
    }
}



.sidebar {
    width: 220px;
    background: #1f2937;
    color: #fff;
    min-height: 100vh;
    padding: 15px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
}
