/* ==================
   General & Layout
   ================== */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 16px;
}

.modal {
    transition: opacity 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
}
.modal.open {
    visibility: visible;
    opacity: 1;
}
.min-h-screen {
    min-height: 100vh;
}

#user-modal.hidden { display: none; }
#user-modal.open { display: flex; }

.user-form input[type="text"]
{
    border: 1px solid #3b82f6;
    border-radius: 6px;
}
.flex {
    display: flex;
}

/* ==================
   Sidebar Navigation
   ================== */
aside {
    background-color: #1f2937; /* Dark Gray */
    color: #e5e7eb;
}

aside a {
    display: block;
    padding: 10px 16px;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out;
}

aside a:hover {
    background-color: #374151; /* Lighter Gray on hover */
}

aside a.bg-gray-900 {
    background-color: #111827; /* Darker tone for active link */
    color: #fff;
}

/* ==================
   Main Content Cards
   ================== */
.card-container {
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ==================
   Table Styling
   ================== */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #f9fafb;
}

th {
    padding: 12px 24px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 16px 24px;
    font-size: 14px;
    color: #4b5563;
    white-space: nowrap;
}

tbody tr:nth-child(odd) {
    background-color: #f9fafb;
}

tbody tr:hover {
    background-color: #f3f4f6;
    transition: background-color 0.2s ease-in-out;
}

/* ==================
   Forms & Inputs
   ================== */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 8px;
}

input[type="number"],
input[type="password"],
input[type="date"],
input[type="email"],
select
input[type="text"],
textarea
 {
    width: 100%;
    padding: 10px;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="number"],
input[type="password"],
input[type="date"],
input[type="email"],
select
{
    width: 40%;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* ==================
   Buttons
   ================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    font-weight: 500;
    border-radius: 6px;
    color: #3b82f6;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #4f46e5; /* Indigo */
    color: #fff;
}

.btn-primary:hover {
    background-color: #4338ca;
}

.btn-secondary {
    background-color: #e5e7eb; /* Light Gray */
    color: #374151;
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

.btn-danger {
    background-color: #ef4444; /* Red */
    color: #fff;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* ==================
   Modal Styling
   ================== */
.modal {
    transition: opacity 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
}

.modal.open {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==================
   Alerts
   ================== */
.alert {
    padding: 16px;
    border-left: 4px solid;
    border-radius: 8px;
    margin-bottom: 24px;
}

.alert-success {
    background-color: #dcfce7;
    border-color: #10b981;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-info {
    background-color: #e0f2fe;
    border-color: #3b82f6;
    color: #1d4ed8;
}
