html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Dashboard styles */
.dashboard-container {
    padding: 2rem;
}

.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 16px 0 rgba(60,72,88,0.07);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px 0 rgba(60,72,88,0.1);
}

.card-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: #5b6be8;
    border-color: #5b6be8;
}

.btn-primary:hover {
    background-color: #4856d6;
    border-color: #4856d6;
}

.display-4 {
    font-weight: 500;
    color: #333;
}

.lead {
    color: #666;
}

/* Sidebar styles */
.sidebar {
    width: 270px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 0.5rem;
    background: #fff;
    border-right: 1px solid #eee;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.sidebar ul li a:hover {
    background: #f8f9fa;
    color: #5b6be8;
}

.sidebar ul li a span {
    margin-right: 0.75rem;
}

.sidebar-section {
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    margin: 1.5rem 0 0.5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Topbar styles */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    border-bottom: 1px solid #eee;
}

/* Main content styles */
.main-content {
    min-height: 100vh;
    background: #f8f9fa;
}

/* Improved Button Styles with Black Theme */
.btn-primary {
    background: #1e293b;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.25);
}

.btn-primary:hover {
    background: #334155;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 41, 59, 0.35);
}

/* Keep small table action buttons purple */
.btn-sm.btn-primary {
    background: linear-gradient(135deg, #0078D4, #00BCF2);
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.25);
}

.btn-sm.btn-primary:hover {
    background: linear-gradient(135deg, #0078D4, #00BCF2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.35);
}

.btn-secondary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

/* Navigation Active States */
.sidebar ul li a.active {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.1), rgba(51, 65, 85, 0.1));
    color: #1e293b;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.15);
}

/* Card Improvements */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    background: #ffffff;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Form Improvements */
.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #1e293b;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    color: #1e293b;
    font-weight: 700;
}

p, .text-muted {
    color: #64748b;
}

/* Alert Improvements */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    color: #15803d;
    border-left: 4px solid #22c55e;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    color: #d97706;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: #2563eb;
    border-left: 4px solid #3b82f6;
}

/* Table Improvements */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table thead th {
    background: #f8fafc;
    border: none;
    color: #475569;
    font-weight: 600;
    padding: 1rem;
}

.table tbody td {
    border: none;
    padding: 0.25rem;
    color: #64748b;
}

.table tbody tr:hover {
    background: #f8fafc;
}

/* Badge Improvements */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #0078D4, #00BCF2) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}