/* Main container */
.financial-statements-viewer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.financial-statements-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 25px;
  background-color: #003d5c;
  color: white;
  border-radius: 8px;
}

.financial-statements-header p {
  margin: 0;
  font-size: 1.3em;
  font-weight: 500;
}

/* Statements grid */
.statements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

/* Statement card - more compact */
.statement-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.statement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 61, 92, 0.12);
  border-color: #003d5c;
}

/* Card header with year badge - smaller */
.card-header {
  background: linear-gradient(135deg, #003d5c 0%, #005a8c 100%);
  padding: 20px 15px;
  text-align: center;
}

.year-badge {
  font-size: 2em;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Card body - more compact */
.card-body {
  padding: 15px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  font-size: 0.95em;
  color: #333;
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

/* Card actions - clean button style */
.card-actions {
  display: flex;
  gap: 10px;
  padding: 15px;
  background-color: #f8f9fa;
}

.btn-view,
.btn-download {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid #003d5c;
  border-radius: 6px;
  background: white;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #003d5c;
}

.btn-view:hover,
.btn-download:hover {
  background-color: #003d5c;
  color: white;
}

.btn-icon {
  font-size: 1.1em;
}

/* No statements message */
.no-statements {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
  margin: 40px 0;
}

.no-statements p {
  font-size: 1.3em;
  color: #856404;
  margin: 0;
}

/* PDF Modal */
.pdf-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.3s;
}

.pdf-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background-color: #003d5c;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2em;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 2em;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #ccc;
}

.modal-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background-color: #f5f5f5;
}

.modal-body iframe {
  border: none;
  width: 100%;
  height: 100%;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
  .financial-statements-viewer {
    padding: 10px;
  }

  .statements-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .financial-statements-header p {
    font-size: 1.1em;
  }

  .year-badge {
    font-size: 1.8em;
  }

  .card-title {
    font-size: 0.9em;
  }

  .card-actions {
    flex-direction: column;
    gap: 8px;
  }

  .modal-content {
    width: 95%;
    height: 95vh;
  }

  .modal-header h3 {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .statements-grid {
    grid-template-columns: 1fr;
  }

  .card-title {
    font-size: 0.85em;
  }

  .btn-view,
  .btn-download {
    font-size: 0.85em;
    padding: 10px;
  }
}