/* style.css */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 15px;
    padding-top: 80px; /* Dashbar එකට ඉඩ තැබීමට */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Card Styling */
.card {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border: 1px solid var(--border);
}

/* Form Styling */
.form-group { margin-bottom: 15px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border 0.3s;
}

input:focus { border-color: var(--primary); outline: none; }

button, .btn {
    display: inline-block;
    width: 100%;
    background-color: var(--primary);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

button:hover { background-color: var(--primary-dark); }

/* Table Styling */
.table-container {
    background: var(--card);
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: var(--shadow);
}

table { width: 100%; border-collapse: collapse; }
th { background: #f1f5f9; padding: 14px; text-align: left; font-size: 0.85rem; text-transform: uppercase; }
td { padding: 14px; border-top: 1px solid var(--border); font-size: 0.95rem; }

/* Responsive Table (Card view on Mobile) */
@media (max-width: 768px) {
    .mobile-table thead { display: none; }
    .mobile-table tr { display: block; margin-bottom: 15px; border: 1px solid var(--border); border-radius: 10px; }
    .mobile-table td {
        display: flex;
        justify-content: space-between;
        text-align: right;
        padding: 10px;
        border-top: 1px solid #f1f5f9;
    }
    .mobile-table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        color: #64748b;
    }
}

/* Alert Messages */
.msg { padding: 12px; border-radius: 8px; margin-bottom: 15px; text-align: center; }
.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }