:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --sidebar-bg: #1e1b4b;
    --sidebar-width: 260px;
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f1f5f9;
    margin: 0;
    padding: 0;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, #312e81 100%);
    color: white;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-header h4 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sidebar-logo {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
}

.sidebar-nav {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    flex: 1;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-nav li a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-nav li.active > a {
    background: rgba(255,255,255,0.15);
    color: white;
    border-left: 3px solid white;
}

.nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0,0,0,0.2);
}

.nav-submenu li a {
    padding: 0.5rem 1.5rem 0.5rem 3rem;
    font-size: 0.875rem;
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.nav-submenu li a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

.top-bar {
    background: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar h5 {
    font-weight: 600;
    color: #1e293b;
}

.content-wrapper {
    padding: 1.5rem;
    flex: 1;
}

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-icon.bg-cyan { background: #06b6d4; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
}

.table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    border-bottom-width: 1px;
}

.table td {
    vertical-align: middle;
    color: #334155;
}

.badge {
    font-weight: 500;
    padding: 0.4em 0.65em;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.notification-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.notif-count {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.notif-label {
    font-size: 0.8rem;
    color: #64748b;
}

.note-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.note-item:last-child {
    border-bottom: none;
}

.note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, #312e81 100%);
}

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: var(--primary);
}

.login-logo {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.login-header h2 {
    margin: 0.5rem 0;
    color: #1e293b;
}

.login-header p {
    color: #64748b;
    margin: 0;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}

input[type="text"].form-control,
input[type="tel"].form-control,
textarea.form-control {
    text-transform: uppercase;
}

input[type="text"].form-control::placeholder,
input[type="tel"].form-control::placeholder,
textarea.form-control::placeholder {
    text-transform: none;
}

.login-page input[type="text"].form-control,
.login-page input[type="password"].form-control,
input.form-control.no-uppercase {
    text-transform: none !important;
}
