
/* Global Styles & Layout */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}

/* Sidebar */
.sidebar {
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #0f172a;
    color: white;
    box-sizing: border-box;
    z-index: 100;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    padding: 30px;
    box-sizing: border-box;
    min-height: 100vh;
}

/* Modern Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Clean select styling */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 15px;
    outline: none;
    font-size: 14px;
    transition: border 0.2s;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%2364748b" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    padding-right: 35px !important;
    cursor: pointer;
}

select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Inputs and Forms */
input[type="text"], input[type="number"], input[type="password"], input[type="email"], textarea {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
    box-sizing: border-box;
}

input:focus, textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Professional Table */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th {
    background-color: #f1f5f9;
    padding: 15px;
    text-align: left;
    font-size: 13px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 15px;
    font-size: 14px;
    border-top: 1px solid #f1f5f9;
}

tr:nth-child(even) { background-color: #fcfcfc; }
tr:hover { background-color: #f8fafc; }

/* Sidebar Hover and Active States */
.sidebar a {
    color: #cbd5e1 !important;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    display: block;
    transition: all 0.2s ease;
    margin: 4px 10px;
}

.sidebar a:hover {
    background-color: #1e293b;
    color: white !important;
}

.sidebar a.active {
    background-color: #2563eb;
    color: white !important;
    font-weight: 600;
}

/* Make Sidebar scrollable */
.sidebar {
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background-color: #0f172a;
    color: white;
    box-sizing: border-box;
    z-index: 100;
    overflow-y: auto; /* Allows scrolling */
    padding-bottom: 60px; /* Space for the footer */
}
