/* Global Styles */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* Gradient Backgrounds */
.gradient-custom {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-primary {
  background-color: #667eea !important;
}

.text-primary {
  color: #667eea !important;
}

.btn-primary {
  background-color: #667eea;
  border-color: #667eea;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #5a6fd6;
  border-color: #5a6fd6;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Card Styling */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 15px 20px;
  font-weight: 700;
}

/* Dashboard Card Gradients */
.card-gradient-purple {
  background: linear-gradient(45deg, #8e44ad, #c0392b);
}

.card-gradient-blue {
  background: linear-gradient(45deg, #2980b9, #2c3e50);
}

.card-gradient-green {
  background: linear-gradient(45deg, #11998e, #38ef7d);
}

.card-gradient-orange {
  background: linear-gradient(45deg, #ff9966, #ff5e62);
}

.card-stats-icon {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
}

/* Links */
a {
  color: #764ba2;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #5a3b7e;
  text-decoration: underline;
}

/* Forms */
.form-control:focus,
.form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* Table */
.table th,
.table td {
  vertical-align: middle;
}

.badge {
  padding: 0.5em 0.8em;
  font-weight: 500;
  border-radius: 6px;
}

/* Navbar overrides for RTL/Margins if needed */
.navbar-brand {
  font-size: 1.5rem;
}

/* Footer stick to bottom */
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

/* Dashboard Specifics */
.display-4 {
  font-weight: 700;
}