/* Custom CSS - Professional Blue Theme */

:root {
  --primary-blue: #2563eb;
  --secondary-blue: #1e40af;
  --accent-blue: #3b82f6;
  --light-blue: #dbeafe;
  --success-green: #10b981;
  --danger-red: #ef4444;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Custom Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-blue) 100%);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-green) 0%, #059669 100%);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-red) 0%, #dc2626 100%);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

/* Custom Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-blue);
  background: white;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15);
  transform: translateY(-4px);
}

.card-header {
  background: linear-gradient(135deg, var(--light-blue) 0%, white 100%);
  border-bottom: 2px solid var(--border-color);
  border-radius: 12px 12px 0 0 !important;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-dark);
}

.card-body {
  padding: 20px;
}

/* Custom Form Inputs */
.form-control,
.form-select {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 16px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 14px;
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 24px;
  color: white !important;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin: 0 4px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: white !important;
}

/* Sidebar */
.sidebar {
  background: white;
  min-height: calc(100vh - 56px);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
  padding: 20px 0;
}

.sidebar .nav-link {
  color: var(--text-dark);
  padding: 12px 24px;
  border-radius: 0;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  margin: 4px 0;
}

.sidebar .nav-link:hover {
  background: var(--light-blue);
  border-left-color: var(--primary-blue);
  color: var(--primary-blue);
}

.sidebar .nav-link.active {
  background: var(--light-blue);
  border-left-color: var(--primary-blue);
  color: var(--primary-blue);
  font-weight: 600;
}

/* Tables */
.table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(135deg, var(--light-blue) 0%, white 100%);
}

.table thead th {
  border: none;
  font-weight: 600;
  color: var(--text-dark);
  padding: 16px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: var(--light-blue);
}

.table td {
  padding: 16px;
  vertical-align: middle;
}

/* Badges */
.badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11px;
}

.badge-success {
  background: var(--success-green);
  color: white;
}

.badge-danger {
  background: var(--danger-red);
  color: white;
}

.badge-primary {
  background: var(--primary-blue);
  color: white;
}

/* Stats Cards */
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-blue);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15);
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 8px 0;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.2;
}

.stat-card .stat-label {
  color: var(--text-light);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card.income {
  border-left-color: var(--success-green);
}

.stat-card.income .stat-value {
  color: var(--success-green);
}

.stat-card.expense {
  border-left-color: var(--danger-red);
}

.stat-card.expense .stat-value {
  color: var(--danger-red);
}

/* Loading Spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -100%;
    top: 56px;
    width: 250px;
    z-index: 1000;
    transition: left 0.3s ease;
  }

  .sidebar.show {
    left: 0;
  }

  .main-content {
    margin-left: 0 !important;
  }

  .stat-card .stat-value {
    font-size: 24px;
  }

  .table {
    font-size: 14px;
  }

  .table td,
  .table th {
    padding: 8px;
  }
}

/* Login Page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

.login-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}

.login-card h2 {
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 8px;
}

.login-card .subtitle {
  color: var(--text-light);
  margin-bottom: 32px;
}

/* Utilities */
.text-primary {
  color: var(--primary-blue) !important;
}

.bg-primary {
  background-color: var(--primary-blue) !important;
}

.border-primary {
  border-color: var(--primary-blue) !important;
}

.shadow-sm {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.rounded-lg {
  border-radius: 12px !important;
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 300px;
  margin: 20px 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state i {
  font-size: 64px;
  color: var(--border-color);
  margin-bottom: 16px;
}

/* Modal */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  border-bottom: 2px solid var(--border-color);
  padding: 20px;
}

.modal-title {
  font-weight: 700;
  color: var(--text-dark);
}

.modal-footer {
  border-top: 2px solid var(--border-color);
  padding: 20px;
}





