html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  --primary-color: #c62828;
  --primary-dark: #8e0000;
  --primary-light: #ff5f52;
  --secondary-color: #424242;
  --secondary-dark: #1b1b1b;
  --secondary-light: #6d6d6d;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --border-color: #e0e0e0;
}

.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 var(--primary-color);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: var(--white);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--secondary-color);
}

/* Modern Dashboard Styles */
.card {
  transition: all 0.3s ease-in-out;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 10px 10px 0 0 !important;
}

.card-header.bg-primary {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #4e4e4e 10%);
  color: white;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--white) !important;
  padding: 1rem 1.5rem;
  border-radius: 0 0 10px 10px !important;
}

.form-floating input.form-control {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 1rem 0.75rem;
}

.form-floating input.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(198, 40, 40, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #6b0000 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

a.text-decoration-none {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a.text-decoration-none:hover {
  color: var(--primary-dark);
}

/* Dashboard specific styles */
.dashboard-card {
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.dashboard-card .card-header {
  font-weight: 600;
  font-size: 1.1rem;
}

.dashboard-card .card-body {
  padding: 1.25rem;
}

.dashboard-stats {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.stats-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  background-color: rgba(198, 40, 40, 0.1);
  color: var(--primary-color);
}

.stats-info h4 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-dark);
}

.stats-info p {
  margin: 0;
  color: var(--secondary-light);
  font-size: 0.9rem;
}

.quick-access-btn {
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
  background-color: var(--light-gray);
  color: var(--secondary-dark);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quick-access-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.quick-access-btn i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.quick-access-btn span {
  font-weight: 500;
}

.table-borderless th {
  font-weight: 600;
  color: var(--secondary-light);
}

.table-borderless td {
  font-weight: 500;
  color: var(--secondary-dark);
}

/* User info card */
.user-info-card {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.user-info-card h2 {
  color: var(--secondary-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.user-info-card p {
  color: var(--secondary-light);
  margin-bottom: 1rem;
}

/* Footer adjustments */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  line-height: 60px;
  background-color: var(--secondary-color);
  color: var(--white) !important;
  z-index: 1000;
}

/* Main content padding for fixed footer */
.main-content {
  padding-bottom: 80px;
}

/* Changelog Modal Styles */
.changelog-container {
    max-height: 500px;
    overflow-y: auto;
}

.changelog-item {
    position: relative;
    padding: 5px 0;
}

.changelog-title {
    font-weight: 600;
    font-size: 18px;
}

.changelog-date {
    font-size: 12px;
}

.changelog-description {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.changelog-description ul {
    padding-left: 20px;
}

.changelog-description li {
    margin-bottom: 5px;
}

/* Notification styles */
.pulse-animation {
    position: relative;
    animation: subtle-pulse 2s infinite;
}

@keyframes subtle-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}