/* Custom Styles for Accounting & News Portal */

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Navbar customization */
.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
}

/* Card enhancements */
.card {
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  margin-bottom: 20px;
}

.card-header {
  border-radius: 10px 10px 0 0 !important;
}

/* Button enhancements */
.btn {
  border-radius: 8px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Form controls */
.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Table enhancements */
.table {
  margin-bottom: 0;
}

.table thead th {
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

/* Badge enhancements */
.badge {
  padding: 6px 12px;
  font-weight: 500;
  border-radius: 6px;
}

/* Stat cards animation */
.stat-card {
  transition: all 0.3s ease;
  cursor: default;
}

/* Chart container */
.chart-container {
  position: relative;
  padding: 10px;
}

/* News card enhancements */
.news-card {
  border-radius: 12px;
  overflow: hidden;
  border: none;
}

.news-card .card-img-top {
  transition: transform 0.3s ease;
}

.news-card:hover .card-img-top {
  transform: scale(1.05);
}

/* Footer */
footer {
  margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .stat-card {
    margin-bottom: 15px;
  }
  
  .table {
    font-size: 0.9rem;
  }
}

/* Loading animation */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Alert enhancements */
.alert {
  border-radius: 10px;
  border: none;
}

/* File upload preview */
.img-thumbnail {
  border-radius: 8px;
  padding: 8px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  footer,
  .no-print {
    display: none !important;
  }
}
