/* Custom Styling for RSU/ESOP Platform */

body {
  /* Use Raleway from Google Fonts */
  font-family: 'Raleway', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 0.9375rem;
}

/* Sidebar styling */
#sidebar, .sidebar {
  font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif !important;
  min-height: 100vh;
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#sidebar *, .sidebar * {
  font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif !important;
}

/* Kiwi branding with theme color */
.text-primary.fw-bold {
  color: #198754 !important;
}

.nav-link {
  color: #495057;
  border-radius: 0.25rem;
  margin: 0.125rem 0;
  font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif !important;
}

.nav-link:hover {
  background-color: rgba(25, 135, 84, 0.05);
  color: #198754;
}

.nav-link.active {
  color: #198754 !important;
  font-weight: 600;
  background-color: rgba(25, 135, 84, 0.1) !important;
}

/* Card styling with colored left borders */
.border-left-primary {
  border-left: 0.25rem solid #198754 !important;
}

.border-left-success {
  border-left: 0.25rem solid #198754 !important;
}

.border-left-info {
  border-left: 0.25rem solid #0dcaf0 !important;
}

.border-left-warning {
  border-left: 0.25rem solid #ffc107 !important;
}

.border-left-danger {
  border-left: 0.25rem solid #dc3545 !important;
}

/* Card hover effect */
.card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Table styling */
.table {
  margin-bottom: 0;
}

.table th {
  font-weight: 600;
  color: #495057;
  font-size: 0.9375rem;
}

/* Forms with theme color focus */
.form-control:focus, .form-select:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Footer */
.footer {
  margin-top: auto;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 1rem 0;
}

/* Login and registration card */
.card-body.p-5 {
  border-radius: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  #sidebar, .sidebar {
    min-height: auto;
    position: static;
  }
}

/* Dashboard stats */
.card .card-footer {
  border-top: none;
  background-color: transparent;
}

.card .card-footer a {
  color: #6c757d;
  font-weight: 500;
  font-size: 0.8125rem;
}

.card .card-footer a:hover {
  color: #198754;
}

/* Utility classes */
.text-xs {
  font-size: 0.6875rem;
}

.text-lg {
  font-size: 1.1875rem;
}

.fw-500 {
  font-weight: 500;
}

.fs-1 {
  opacity: 0.8;
}

/* Small badges */
.badge {
  font-weight: 500;
}

/* Pagination with theme color */
.pagination .page-link {
  color: #198754;
}

.pagination .page-item.active .page-link {
  background-color: #198754;
  border-color: #198754;
  color: white;
}

/* Primary buttons with theme color */
.btn-primary {
  background-color: #198754;
  border-color: #198754;
}

.btn-primary:hover {
  background-color: #157347;
  border-color: #146c43;
}

.btn-primary:focus, .btn-primary.focus {
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.5);
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
  background-color: #146c43;
  border-color: #13653f;
}

/* Outline primary buttons */
.btn-outline-primary {
  color: #198754;
  border-color: #198754;
}

.btn-outline-primary:hover {
  background-color: #198754;
  border-color: #198754;
}

.dashboard-card-heading {
  min-height: 48px;
  display: flex;
  align-items: flex-end;
}

/* Layout: sticky sidebar, footer only under main content */
.layout {
  display: flex;
  min-height: 100vh;
}

#sidebar, .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 220px;
  max-width: 260px;
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  z-index: 1000;
  flex-shrink: 0;
}

.main-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 991.98px) {
  #sidebar, .sidebar {
    position: static;
    height: auto;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    border-right: none;
  }
  .layout {
    flex-direction: column;
  }
}

/* Grant Summary Custom Styles */
.grant-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.grant-summary-box {
  flex: 1 1 120px;
  min-width: 120px;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.25rem;
}
.grant-summary-number {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
} 