﻿/* ========================================== */
/* ÁTALÁNYADÓ RENDSZER - CUSTOM STYLES */
/* ========================================== */

.calculator-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin: 30px auto;
  max-width: 1400px;
}

.calculator-header {
  background: linear-gradient(135deg, var(--theme-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 30px;
  border-radius: 10px 10px 0 0;
  margin: -30px -30px 30px -30px;
  text-align: center;
}

  .calculator-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
  }

  .calculator-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
  }

.nav-tabs {
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 30px;
}

  .nav-tabs .nav-link {
    border: none;
    color: var(--theme-color);
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
  }

    .nav-tabs .nav-link:hover {
      border-color: var(--secondary-color);
      color: var(--secondary-color);
    }

    .nav-tabs .nav-link.active {
      color: var(--secondary-color);
      border-bottom-color: var(--secondary-color);
      background: none;
    }

.info-box {
  background: #e3f2fd;
  border-left: 4px solid var(--secondary-color);
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.warning-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

/* ========================================== */
/* YEAR CARDS */
/* ========================================== */

.year-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s;
}

  .year-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
  }

  .year-card h4 {
    color: var(--theme-color);
    margin-bottom: 15px;
  }

  .year-card .year-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .year-card .year-label {
    font-weight: 600;
    color: #555;
  }

  .year-card .year-value {
    color: var(--theme-color);
    font-weight: 600;
  }

/* ========================================== */
/* CLIENT CARDS */
/* ========================================== */

.client-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s;
  cursor: pointer;
}

  .client-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
  }

  .client-card h5 {
    color: var(--theme-color);
    margin-bottom: 10px;
  }

  .client-card .client-info {
    font-size: 0.9rem;
    color: #666;
  }

  .client-card .badge {
    font-size: 0.85rem;
    padding: 5px 10px;
  }

/* ========================================== */
/* RESULT BOX (SZÁMÍTÁSOK) */
/* ========================================== */

.result-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-top: 15px;
}

  .result-box h4 {
    color: var(--theme-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
  }

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

  .result-item:last-child {
    border-bottom: none;
  }

.result-label {
  color: #555;
  font-weight: 500;
}

.result-value {
  color: var(--theme-color);
  font-weight: 600;
}

.result-highlight {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-color);
}

/* ========================================== */
/* ACCORDION CUSTOMIZATION */
/* ========================================== */

.accordion-button {
  background-color: #f8f9fa;
  color: var(--theme-color);
  font-weight: 600;
  padding-left:10pt;
}

  .accordion-button:not(.collapsed) {
    background-color: var(--secondary-color);
    color: white;
  }

  .accordion-button:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
  }

.accordion-body {
  background-color: #ffffff;
}

/* ========================================== */
/* FORM ELEMENTS */
/* ========================================== */

.form-label {
  font-weight: 600;
  color: var(--theme-color);
  margin-bottom: 8px;
}

.form-control, .form-select {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  transition: all 0.3s;
}

  .form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
  }

/* ========================================== */
/* BUTTONS */
/* ========================================== */

.btn-primary {
  background: var(--secondary-color);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

  .btn-primary:hover {
    background: var(--theme-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

.btn-danger {
  background: #dc3545;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
}

  .btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
  }

/* ========================================== */
/* MODAL CUSTOMIZATION */
/* ========================================== */

.modal-header {
  background: linear-gradient(135deg, var(--theme-color) 0%, var(--secondary-color) 100%);
  color: white;
}

  .modal-header .modal-title {
    font-weight: 600;
  }

  .modal-header .btn-close {
    filter: brightness(0) invert(1);
  }

/* ========================================== */
/* RESPONSIVE */
/* ========================================== */

@media (max-width: 768px) {
  .calculator-header h1 {
    font-size: 1.5rem;
  }

  .nav-tabs .nav-link {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .calculator-container {
    padding: 15px;
  }

  .result-box {
    padding: 15px;
  }
}

/* ========================================== */
/* LOADING SPINNER */
/* ========================================== */

.loading-spinner {
  text-align: center;
  padding: 50px;
}

  .loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--secondary-color);
  }

/* ========================================== */
/* EMPTY STATE */
/* ========================================== */

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #999;
}

  .empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
  }

  .empty-state p {
    font-size: 1.1rem;
    margin: 0;
  }

/* ============================================================
   ÖSSZESÍTÉS TAB STÍLUSOK
   ============================================================ */

.quarter-card {
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

  .quarter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .quarter-card .card-title {
    color: var(--theme-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
  }

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.summary-label {
  color: #666;
  font-weight: 500;
}

.summary-value {
  color: #333;
  font-weight: 600;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  color: var(--theme-color);
  margin-top: 0.5rem;
}

.yearly-summary-item {
  text-align: center;
  padding: 1rem;
}

.yearly-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.yearly-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--theme-color);
}

#summary-content {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
