* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
}

header {
    background-color: #2c3e50;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 20px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 14px;
}

.btn-login { background-color: #2980b9; }
.btn-logout { background-color: #c0392b; }

.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 15px;
}

.login-box {
    max-width: 450px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card h2 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover { background-color: #219150; }

/* Alerts */
.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}
.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 15px;
    background: #bdc3c7;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: #2c3e50;
}

.tab-btn.active {
    background: #2980b9;
    color: white;
}

/* Tabs Styling */
.tab-content { 
    display: none !important; 
}
.tab-content.active { 
    display: block !important; 
}
/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

table th { background-color: #f2f2f2; }

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}
.Available, .Approved { background-color: #27ae60; }
.Issued, .Rejected { background-color: #c0392b; }
.Pending { background-color: #f39c12; }

.btn-sm {
    padding: 5px 8px;
    text-decoration: none;
    color: white;
    border-radius: 3px;
    font-size: 12px;
    display: inline-block;
}
.approve { background-color: #27ae60; }
.reject { background-color: #c0392b; }

/* Dashboard Button Menu Grid */
.dashboard-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.menu-card-btn {
    background-color: #ffffff;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    padding: 18px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #2c3e50;
    position: relative;
    font-family: inherit;
}

.menu-card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

/* Active වී ඇති බොත්තම */
.menu-card-btn.active {
    background-color: #2980b9;
    color: #ffffff;
    border-color: #2980b9;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.35);
}

.menu-card-btn .menu-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.menu-card-btn .menu-title {
    font-size: 15px;
    font-weight: bold;
}

.menu-card-btn .menu-sub {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

/* බොත්තම මත දිස්වන රතු පැහැති Notification Badge එක */
.menu-card-btn .notif-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    margin-left: 0;
}

/* Super Admin විශේෂ බොත්තම් සඳහා වර්ණ වෙනස්කම් */
.menu-card-btn.super-btn {
    border-left: 5px solid #8e44ad;
}
.menu-card-btn.danger-btn {
    border-left: 5px solid #c0392b;
}
.menu-card-btn.teal-btn {
    border-left: 5px solid #16a085;
}

<style>
        /* පහළට දිගහැරෙන මෙනුව (Dropdown Menu) සඳහා CSS */
        .super-dropdown {
            position: relative;
            display: inline-block;
        }
        .super-dropbtn {
            background-color: #8e44ad;
            color: white;
            padding: 8px 15px;
            font-size: 14px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .super-dropbtn:hover {
            background-color: #732d91;
        }
        .super-dropdown-content {
            display: none;
            position: absolute;
            right: 0;
            top: 100%;
            margin-top: 6px;
            background-color: #ffffff;
            min-width: 270px;
            box-shadow: 0px 8px 20px rgba(0,0,0,0.18);
            border-radius: 8px;
            z-index: 1000;
            border: 1px solid #e0e6ed;
            overflow: hidden;
            text-align: left;
        }
        .super-dropdown-content.show {
            display: block;
        }
        .super-dropdown-content a {
            color: #2c3e50;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            border-bottom: 1px solid #f1f3f5;
            transition: background 0.2s;
            margin: 0;
        }
        .super-dropdown-content a:last-child {
            border-bottom: none;
        }
        .super-dropdown-content a:hover {
            background-color: #f4f6f9;
        }
        .drop-item-title {
            display: block;
            font-weight: bold;
            font-size: 14px;
            color: #2c3e50;
        }
        .drop-item-sub {
            display: block;
            font-size: 11px;
            color: #7f8c8d;
            margin-top: 2px;
        }
        /* Notification Badge */
        .notif-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background-color: #ff0000;
            color: #ffffff;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            font-size: 11px;
            font-weight: bold;
            margin-left: 6px;
        }
