/* GPF Application Custom Styles */

:root {
  /* Primary Colors */
  --primary-color: #132440;
  --secondary-color: #2F9AC4;

  /* Secondary Colors */
  --secondary-dark: #0177a5;
  --secondary-light: #2F9AC4;

  /* Status Colors */
  --success-color: #059669;
  --warning-color: #d97706;
  --error-color: #dc2626;
  --info-color: #0284c7;

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-light: #f1f5f9;
  --bg-dark: #1f2937;

  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-white: #ffffff;

  /* Border Colors */
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --border-dark: #d1d5db;

  /* Shadow */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
}

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  text-decoration: none;
}

.container-fluid {
  padding-right: calc(var(--bs-gutter-x) * 2.5) !important;
  padding-left: calc(var(--bs-gutter-x) * 2.5) !important;
}

/* Custom Button Styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-white);
  font-weight: 500;
  /* padding: 0.75rem 1.5rem; */
  border-radius: var(--radius-md);
  transition: all 0.2s ease-in-out;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.badge {
  padding: 0.5rem 1rem !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-white);
}

/* Card Styles */
.card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-primary);
  transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: var(--spacing-xl);
}

/* Form Styles */
.form-control {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  /* padding: 0.75rem 1rem; */
  font-size: 0.95rem;
  transition: all 0.2s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

.bg-gradient_home {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.bg-danger_home {
  background: linear-gradient(135deg, rgb(203, 0, 0) 0%, rgb(243, 178, 58) 100%);
}

/* Alert Styles */
.alert {
  border-radius: var(--radius-md);
  border: none;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.alert-success {
  background-color: rgba(5, 150, 105, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.alert-danger {
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--error-color);
  border-left: 4px solid var(--error-color);
}

.alert-warning {
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--warning-color);
  border-left: 4px solid var(--warning-color);
}

.alert-info {
  background-color: rgba(2, 132, 199, 0.1);
  color: var(--info-color);
  border-left: 4px solid var(--info-color);
}

/* Loading Spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Custom Utilities */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.border-primary-custom {
  border-color: var(--primary-color) !important;
}

.logo_image {
  width: 70px;
}

.logo_emblem {
  width: 50px
}

.office_name {
  font-size: 2rem;
}

.office_location {
  font-size: 1.3rem;
}

.gpf_title {
  font-size: 1.8rem;
}

.gpf_account {
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container-fluid {
    padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
    padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
  }

  .logo_image {
    width: 50px;
  }

  .logo_emblem {
    width: 30px
  }

  .office_name {
    font-size: 1rem;
  }

  .office_location {
    font-size: 0.8rem;
  }

  .gpf_title {
    font-size: 0.9rem;
  }

  .gpf_account {
    font-size: 0.8rem;
    text-align: left;
    margin-top: 10px;
  }

  .gpf_buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }

  .card-body {
    padding: var(--spacing-lg);
  }

  .btn {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.select2-container .select2-selection--single {
  height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px !important;
}

.select2-container--default .select2-selection--single {
  border: 1px solid #e7e6e6 !important;
  border-radius: 5px !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--primary-color) !important;
}

.select2-container--default .select2-results__option--selected {
  background-color: var(--primary-color) !important;
  color: white;
}

.table-primary_home tr th {
  background-color: var(--secondary-color) !important;
  color: var(--text-white) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-item .dropdown-menu.show {
  gap: 10px;
  display: grid;
  padding: 10px;
}

.nav-link {
  color: white !important;
}

.nav-link a {
  border-radius: 5px;
}

.nav-link:hover {
  border-radius: 5px;
  background-color: var(--secondary-color) !important;
  color: var(--text-white) !important;
}

.nav-link.active {
  border-radius: 5px;
  background-color: var(--primary-color) !important;
  color: var(--text-white) !important;
}

.dropdown-item:hover {
  background-color: var(--primary-color) !important;
  color: var(--text-white) !important;
  border-radius: 5px;
}

.dashboard-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark, #0056b3) 100%);
  color: white;
  position: relative;
}

.stat-card.success {
  background: linear-gradient(135deg, var(--bs-success) 0%, #157347 100%);
}

.stat-card.info {
  background: linear-gradient(135deg, var(--bs-info) 0%, #087990 100%);
}

.stat-card.warning {
  background: linear-gradient(135deg, var(--bs-warning) 0%, #b76e00 100%);
}

.stat-card.danger {
  background: linear-gradient(135deg, var(--bs-danger) 0%, #b76e00 100%);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.stat-icon {
  font-size: 2.5rem;
  opacity: 0.9;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.quick-action-card {
  border: 2px solid transparent;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.quick-action-card:hover {
  border-color: var(--bs-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  color: inherit;
  text-decoration: none;
}

.activity-item {
  position: relative;
  margin-bottom: 20px;
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--bs-primary);
}

.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.stats-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--bs-primary);
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.action-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.action-card:hover {
  border-color: var(--bs-primary);
  transform: translateY(-2px);
}

.data-table-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.5rem;
  border-bottom: 1px solid #dee2e6;
}

.search-box {
  border-radius: 25px;
  border: 2px solid #e9ecef;
  /* padding: 0.75rem 1.5rem; */
  transition: all 0.3s ease;
}

.search-box:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

table {
  font-size: 14px !important;
}

.table th {
  background-color: #f8f9fa;
  border: none;
  font-weight: 600;
  color: #495057;
  padding: 1rem;
}

.table td {
  vertical-align: middle;
  border-color: #f1f3f4;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.875rem;
}

.import-export-section {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Enhanced table styling for GPF balance columns */
.table-responsive {
  border-radius: 8px;
  overflow-x: auto;
}

.table th,
.table td {
  white-space: nowrap;
}

.table th:first-child,
.table td:first-child {
  min-width: 20px;
}

.table .fw-bold {
  font-weight: 600 !important;
}
table, th, td {
  border: 1px solid #bedfff !important;
  border-color: #bedfff !important;
}
.table-responsive{
  padding: 5px !important;
}
/* Financial amount styling */
.text-info {
  color: #0dcaf0 !important;
}

.text-success {
  color: #198754 !important;
}

.text-danger {
  color: #dc3545 !important;
}

/* Responsive table adjustments */
@media (max-width: 768px) {

  .table th,
  .table td {
    font-size: 0.875rem;
    padding: 0.75rem 0.5rem;
  }
}

.pagination {
  gap: 5px;
}

.pagination li a {
  padding: 5px 10px !important;
  border: 1px solid #2c2c2c !important;
  color: #2c2c2c !important;
  border-radius: 3px !important;
}

.pagination li a:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.pagination li.active a {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.upload-zone {
  border: 3px dashed #dee2e6;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  background: #f8f9fa;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-zone:hover {
  border-color: #007bff;
  background: #e7f3ff;
}

.upload-zone.dragover {
  border-color: #28a745;
  background: #d4edda;
}

.file-preview-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  margin-bottom: 5px;
  background: white;
}

.file-preview-item .file-info {
  flex-grow: 1;
  margin-left: 10px;
}

.file-preview-item .file-size {
  color: #6c757d;
  font-size: 0.875rem;
}

.file-preview-item .remove-file {
  color: #dc3545;
  cursor: pointer;
  padding: 2px 6px;
}

.file-preview-item .remove-file:hover {
  background: #dc3545;
  color: white;
  border-radius: 3px;
}

.progress-container {
  display: none;
  margin-top: 20px;
}

.upload-results {
  display: none;
  margin-top: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card_a {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.validation-errors {
  max-height: 200px;
  overflow-y: auto;
}

.validation-errors-panel {
  margin-bottom: 20px;
}

.validation-errors-list {
  max-height: 200px;
  overflow-y: auto;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 10px;
}

.validation-errors-list .error-item {
  display: flex;
  align-items: flex-start;
  padding: 5px 0;
  border-bottom: 1px solid #ffeaa7;
  font-size: 0.875rem;
}

.validation-errors-list .error-item:last-child {
  border-bottom: none;
}

.validation-errors-list .error-item .error-icon {
  color: #dc3545;
  margin-right: 8px;
  margin-top: 2px;
  flex-shrink: 0;
}

.validation-errors-list .error-item .error-text {
  flex-grow: 1;
  color: #721c24;
}

.file-info-panel {
  position: sticky;
  top: 20px;
}

.justify-content-space-between {
  justify-content: space-between;
}

.hover-shadow {
  transition: all 0.2s ease-in-out;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px);
}

.list-group-item {
  border: none;
  border-bottom: 1px solid #f1f3f4;
}

.list-group-item:last-child {
  border-bottom: none;
}

/* Modern Detail Cards Styles */
.modern-detail-card {
  overflow: hidden;
  transition: all 0.3s ease;
}

.bg-gradient-info {
  background: linear-gradient(135deg, #138496 0%, #17a2b8 100%) !important;
}

.bg-gradient-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}
.bg-gradient-warning {
  background: linear-gradient(135deg,#fd7e14 0%, #f69547 100%) !important;
}
.detail-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border-radius: 8px;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.detail-item:hover .detail-icon {
  transform: scale(1.15) rotate(5deg);
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6c757d;
  margin-bottom: 6px;
  display: block;
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
  .detail-item:hover {
    padding: 12px 8px;
    margin: 0 -4px;
  }

  .detail-icon {
    width: 38px;
    height: 38px;
  }

  .detail-label {
    font-size: 0.7rem;
  }

  .detail-value {
    font-size: 0.95rem;
  }

}

.gpf_account .btn {
  width: auto;
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-content: center;
  text-align: center;
}

.compact-cards .card-body {
  padding: 1rem 1rem;
}

.compact-cards .card-title {
  font-size: 1.2rem;
  margin: 0;
}

.compact-cards .card-text {
  font-size: .88rem;
  margin: .45rem 0 0;
}

.compact-cards .bi {
  font-size: 1.8rem;
}

.compact-cards .card {
  transition: transform .12s ease, box-shadow .12s ease;
}

.compact-cards .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  background-color: var(--secondary-dark);
  color: white !important;
}
.compact-cards .card:hover .bi {
  color: white !important;
}
.compact-cards .card:hover .card-title,
.compact-cards .card:hover .card-text {
  color: white !important;
}

.compact-cards a.card {
  color: inherit;
}
.bg-secondary.bg-opacity-10{
  background-color: #d6e7f8 !important;
}
.bg-warning.bg-opacity-10{
  background-color: #fff3cd !important;
}
.bg-warning{
  background-color: #dda600 !important;
}
.bg-primary{
  background-color: var(--primary-color) !important;
}
.border-left-primary{
  border-left: 4px solid var(--primary-color) !important;
}
.border-left-info{
  border-left: 4px solid #17a2b8 !important;
}
.border-left-success{
  border-left: 4px solid #28a745 !important;
}
.border-left-warning{
  border-left: 4px solid #ffc107 !important;
}
.border-left-danger{
  border-left: 4px solid #dc3545 !important;
}