/* Accountancy Modern Styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600&display=swap');

.accountancy-container {
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #121220 100%);
  min-height: 100vh;
  padding: 2rem 0;
}

.accountancy-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInDown 0.8s ease-out;
}

.accountancy-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #28a745, #20c997, #17a2b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
  margin-bottom: 1rem;
}

.accountancy-subtitle {
  color: #e8f5e8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.accountancy-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(40, 167, 69, 0.3);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  animation: slideInUp 0.6s ease-out;
  transition: all 0.3s ease;
}

.accountancy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(40, 167, 69, 0.4);
}

.accountancy-card-header {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 2rem;
  text-align: center;
}

.accountancy-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  animation: pulse 2s infinite;
}

.accountancy-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.accountancy-card-body {
  padding: 2rem;
  text-align: center;
}

.accountancy-button {
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  color: white;
  padding: 1.5rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 15px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.accountancy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
  color: white;
  text-decoration: none;
}

/* Report Container Styles */
.report-container {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(40, 167, 69, 0.2);
  overflow: hidden;
  margin-bottom: 2rem;
}

.report-header {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 2.5rem;
  text-align: center;
}

.report-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.report-body {
  padding: 2rem;
}

/* Summary Cards - Enhanced Professional Design */
.report-container .report-summary {
  padding: 2.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 3px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.report-container .report-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
}

.report-container .summary-card {
  background: #ffffff !important;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  min-height: 80px;
  display: flex !important;
  align-items: center;
  gap: 1rem;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.report-container .summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--card-color-start), var(--card-color-end));
  transition: width 0.35s ease;
  z-index: 0;
}

.report-container .summary-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(40, 167, 69, 0.3);
}

.report-container .summary-card:hover::before {
  width: 6px;
}

.report-container .summary-icon {
  width: 55px !important;
  height: 55px !important;
  min-width: 55px !important;
  border-radius: 12px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: white !important;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  transition: all 0.35s ease;
}

.report-container .summary-card:hover .summary-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Icon Color Gradients - More Specific */
.report-container .summary-icon.bg-primary { 
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
  --card-color-start: #007bff;
  --card-color-end: #0056b3;
}
.report-container .summary-icon.bg-success { 
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
  --card-color-start: #28a745;
  --card-color-end: #1e7e34;
}
.report-container .summary-icon.bg-info { 
  background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%) !important;
  --card-color-start: #17a2b8;
  --card-color-end: #117a8b;
}
.report-container .summary-icon.bg-warning { 
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
  --card-color-start: #ffc107;
  --card-color-end: #e0a800;
}
.report-container .summary-icon.bg-danger { 
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
  --card-color-start: #dc3545;
  --card-color-end: #c82333;
}
.report-container .summary-icon.bg-secondary { 
  background: linear-gradient(135deg, #6c757d 0%, #545b62 100%) !important;
  --card-color-start: #6c757d;
  --card-color-end: #545b62;
}

.report-container .summary-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.report-container .summary-label {
  font-size: 0.65rem !important;
  color: #6c757d !important;
  font-weight: 600 !important;
  margin-bottom: 0.35rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  line-height: 1.2 !important;
  display: block !important;
  opacity: 1 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-container .summary-value {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem) !important;
  font-weight: 700 !important;
  color: #212529 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  letter-spacing: -0.3px !important;
  display: block !important;
  opacity: 1 !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.report-container .summary-card:hover .summary-value {
  color: #28a745 !important;
  transition: color 0.3s ease;
}

/* Table Styles */
.report-table {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

.report-table thead {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.report-table th {
  border: none;
  padding: 1.25rem 1rem;
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.report-table td {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  text-align: center;
  vertical-align: middle;
  font-size: 0.9rem;
}

.report-table tbody tr {
  transition: all 0.2s ease;
}

.report-table tbody tr:hover {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(32, 201, 151, 0.05));
  transform: scale(1.01);
}

.report-table tbody tr:last-child td {
  border-bottom: none;
}

/* Badge Styles */
.report-table .badge {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Back Button */
.report-back-button {
  background: linear-gradient(135deg, #6c757d, #495057);
  border: none;
  color: white;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(108, 117, 125, 0.3);
}

.report-back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
  color: white;
  text-decoration: none;
}

/* Animations */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Text Muted Improvements */
.report-container .text-muted {
  color: #6c757d !important;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.report-container .fa-3x.text-muted {
  color: #6c757d !important;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .report-table th,
  .report-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .summary-value {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .accountancy-title { 
    font-size: 2rem; 
  }
  
  .accountancy-card-header { 
    padding: 1.5rem; 
  }
  
  .accountancy-card-body { 
    padding: 1.5rem; 
  }
  
  .accountancy-button { 
    padding: 1.25rem 1.5rem; 
    font-size: 1rem; 
  }
  
  .report-header {
    padding: 1.5rem;
  }
  
  .report-title {
    font-size: 1.5rem;
  }
  
  .report-body {
    padding: 1rem;
  }
  
  .report-container .report-summary {
    padding: 1.5rem 1rem;
  }
  
  .report-container .summary-card {
    padding: 1.5rem;
    flex-direction: row !important;
    text-align: left;
    gap: 1rem;
  }
  
  .report-container .summary-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem;
  }
  
  .report-container .summary-value {
    font-size: 1.5rem;
  }
  
  .report-container .summary-label {
    font-size: 0.7rem;
  }
  
  .report-table {
    font-size: 0.8rem;
  }
  
  .report-table th,
  .report-table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }
  
  .report-table .badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .accountancy-container {
    padding: 1rem 0;
  }
  
  .report-container {
    border-radius: 15px;
    margin-bottom: 1rem;
  }
  
  .summary-card {
    margin-bottom: 0.5rem;
  }
  
  .report-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
