/* ============================================
   Professional Enhancement Styles
   AztraBank UI Refinements
   ============================================ */

/* Button Enhancements */
.btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--dur-fast) ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-accent {
  background: linear-gradient(135deg, var(--brand) 0%, var(--navy-700) 100%);
  color: white;
  border: none;
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
}

.btn-ghost {
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-1);
}

.btn-ghost:hover {
  border-color: var(--brand);
  background: var(--navy-50);
  color: var(--brand);
}

/* Card Enhancements */
.feature-card,
.card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: all var(--dur-mid) ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* Input Field Enhancements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--dur-fast) ease;
  background: var(--surface);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 127, 92, 0.1);
  background: var(--surface);
}

input::placeholder {
  color: var(--text-4);
  font-weight: 400;
}

/* Form Labels */
label {
  font-weight: 600;
  color: var(--text-1);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

/* Navigation Enhancement */
.navbar {
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar a,
.navbar button {
  font-weight: 500;
  transition: all var(--dur-fast) ease;
}

.navbar a:hover {
  color: var(--brand);
}

/* Table Enhancements */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
}

th {
  background: var(--surface-2);
  border-bottom: 2px solid var(--border-2);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-1);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
}

tbody tr:hover {
  background: var(--surface-2);
  transition: background var(--dur-fast) ease;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Badge Enhancements */
.badge {
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
  border-radius: var(--r-full);
  padding: 0.375rem 0.875rem;
  display: inline-block;
  transition: all var(--dur-fast) ease;
}

.badge-success {
  background: var(--green-bg);
  color: var(--green-text);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-danger {
  background: var(--red-bg);
  color: var(--red-text);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-warning {
  background: var(--amber-bg);
  color: var(--amber-text);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-info {
  background: var(--sky-bg);
  color: var(--sky-text);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Modal Enhancements */
.modal {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--surface);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--surface-2);
}

/* Alert Boxes */
.alert {
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  border-left: 4px solid;
  margin-bottom: 1rem;
}

.alert-success {
  background: var(--green-bg);
  color: var(--green-text);
  border-left-color: var(--green);
}

.alert-danger {
  background: var(--red-bg);
  color: var(--red-text);
  border-left-color: var(--red);
}

.alert-warning {
  background: var(--amber-bg);
  color: var(--amber-text);
  border-left-color: var(--amber);
}

.alert-info {
  background: var(--sky-bg);
  color: var(--sky-text);
  border-left-color: var(--sky);
}

/* Sidebar Enhancement */
.sidebar {
  background: var(--navy-900);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar-item {
  border-radius: var(--r-md);
  margin: 0.5rem 0.75rem;
  transition: all var(--dur-fast) ease;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.sidebar-item.active {
  background: var(--brand);
  color: white;
  font-weight: 600;
}

/* Dropdown Menu Enhancement */
.dropdown-menu {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 200px;
  overflow: hidden;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  transition: all var(--dur-fast) ease;
  border-bottom: 1px solid var(--border);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--navy-50);
  color: var(--brand);
  padding-left: 1.25rem;
}

/* Section Headers */
.section-header {
  border-bottom: 2px solid var(--border-2);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
  color: var(--text-1);
}

.section-header p {
  color: var(--text-3);
  font-size: 0.95rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

/* Success State */
.success-state {
  color: var(--green);
  font-weight: 600;
}

.success-state::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 0.5rem;
}

/* Loading State */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading {
  display: inline-block;
  animation: spin 1s linear infinite;
}

/* Link Styles */
a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--dur-fast) ease;
}

a:hover {
  color: var(--navy-700);
  text-decoration: underline;
}

/* Code Block Styles */
code {
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text-1);
}

pre {
  background: var(--surface-2);
  border-radius: var(--r-lg);
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  margin: 1rem 0;
}

pre code {
  background: none;
  padding: 0;
}

/* Horizontal Line */
hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* Dark Mode Enhancements */
[data-theme="dark"] .btn-ghost {
  border-color: var(--border);
}

[data-theme="dark"] .btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--brand);
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-1);
}

[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="email"]:focus,
[data-theme="dark"] input[type="password"]:focus,
[data-theme="dark"] input[type="number"]:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  box-shadow: 0 0 0 3px rgba(42, 171, 120, 0.15);
  border-color: var(--brand-light);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.75rem 0.5rem;
  }
}

/* Print Styles */
@media print {
  .btn,
  .navbar,
  .sidebar,
  nav {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }
}
