/* CSS Styles for Bank Statement System */
:root {
    --primary-color: #2E5E8C;
    --secondary-color: #4ECDC4;
    --accent-color: #c0392b;
    --logo-red: #e74c3c;
    --light-gray: #f5f8f9;
    --dark-gray: #2c3e50;
    --white: #fff;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
  }
  
  body {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
  }
  
  header {
    background: transparent;
    color: var(--dark-gray);
    padding: 0;
    border-bottom: none;
    box-shadow: none;
    position: relative;
  }
  
  .logo-section {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .motto-section {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
  }
  
  .logo {
    height: 60px;
    margin-right: 15px;
    filter: none;
  }
  
  .site-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: none;
    color: var(--primary-color);
  }
  
  .site-motto {
    font-size: 1.2rem;
    opacity: 1;
    font-weight: 300;
    color: var(--white);
    margin: 0;
    text-align: center;
  }
  
  .main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
  }
  
  .card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: var(--transition);
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  }
  
  .card-title {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    font-size: 1.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .card-title i {
    color: var(--accent-color);
    margin-right: 12px;
    font-size: 1.8rem;
  }
  
  .badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 30px;
    background-color: var(--accent-color);
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(192, 57, 43, 0.3);
  }
  
  .badge i {
    margin-right: 5px;
    font-size: 0.9rem;
    color: white;
  }
  
  .form-group {
    margin-bottom: 25px;
  }
  
  label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1.05rem;
  }
  
  .file-input-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px dashed var(--accent-color);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    transition: var(--transition);
    background-color: rgba(52, 152, 219, 0.05);
    cursor: pointer;
  }
  
  .file-input-container:hover {
    background-color: rgba(46, 94, 140, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.01);
  }
  
  .file-input-container i {
    font-size: 56px;
    color: var(--accent-color);
    margin-bottom: 20px;
  }
  
  .file-input-text {
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 500;
  }
  
  .file-input-hint {
    color: var(--dark-gray);
    font-size: 0.95rem;
    opacity: 0.7;
  }
  
  .file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
  }
  
  .file-name {
    margin-top: 15px;
    font-size: 1rem;
    color: var(--primary-color);
    display: none;
    background-color: rgba(46, 94, 140, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
  }
  
  .form-control {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8f9fa;
  }
  
  .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(46, 94, 140, 0.15);
  }
  
  .btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn i {
    margin-right: 8px;
  }
  
  .btn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 107, 0.4);
  }
  
  .btn-block {
    display: flex;
    width: 100%;
  }
  
  .btn-secondary {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
  }
  
  .btn-secondary:hover {
    background-color: #40b5aa;
    box-shadow: 0 6px 18px rgba(78, 205, 196, 0.4);
  }
  
  .btn-danger {
    background-color: var(--danger);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  }
  
  .btn-danger:hover {
    background-color: #c0392b;
    box-shadow: 0 6px 18px rgba(231, 76, 60, 0.4);
  }
  
  .result-wrapper {
    display: none;
  }
  
  .result-wrapper.show {
    display: block;
  }
  
  .alert {
    padding: 18px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .alert-success {
    background-color: rgba(46, 204, 113, 0.15);
    border-left: 5px solid var(--success);
    color: #16a085;
  }
  
  .alert-danger {
    background-color: rgba(231, 76, 60, 0.15);
    border-left: 5px solid var(--danger);
    color: #c0392b;
  }
  
  .alert i {
    font-size: 22px;
    margin-right: 15px;
  }
  
  .tab-container {
    margin-top: 25px;
  }
  
  .tab-buttons {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1px;
  }
  
  .tab-button {
    padding: 12px 24px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
  }
  
  .tab-button i {
    margin-right: 8px;
    font-size: 1.05rem;
  }
  
  .tab-button.active {
    background-color: var(--white);
    color: var(--primary-color);
    border-top: 3px solid var(--accent-color);
    margin-bottom: -2px;
    position: relative;
  }
  
  .tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--white);
  }
  
  .tab-content {
    display: none;
    padding: 25px;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    background-color: var(--white);
  }
  
  .tab-content.active {
    display: block;
  }
  
  .result-section {
    margin-top: 25px;
  }
  
  .result-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    overflow: hidden;
  }
  
  .result-header {
    background: linear-gradient(135deg, var(--primary-color), #1e3a56);
    color: var(--white);
    padding: 18px 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
  }
  
  .result-header i {
    margin-right: 10px;
    font-size: 1.2rem;
  }
  
  .result-body {
    padding: 25px;
    overflow-x: auto;
  }
  
  pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    color: #2c3e50;
  }
  
  pre.error {
    color: var(--danger);
    background-color: rgba(231, 76, 60, 0.05);
    border-color: var(--danger);
  }
  
  /* Result Table Styles */
  .result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }
  
  .result-table thead th {
    background: linear-gradient(135deg, var(--primary-color), #243547);
    color: var(--white);
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
    position: sticky;
    top: 0;
  }
  
  .result-table tbody td {
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    transition: var(--transition);
  }
  
  .result-table tbody tr:hover td {
    background-color: #f8f9fa;
  }
  
  .result-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
  }
  
  .table-responsive {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  
  .data-summary {
    background-color: rgba(192, 57, 43, 0.1);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--accent-color);
  }
  
  .data-summary i {
    margin-right: 8px;
    color: var(--accent-color);
  }
  
  .export-buttons {
    display: flex;
    margin-top: 25px;
    gap: 15px;
  }
  
  .pulse-animation {
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(46, 94, 140, 0.4);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(46, 94, 140, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(46, 94, 140, 0);
    }
  }
  
  /* เพิ่ม styles สำหรับธนาคาร */
  .amount-debit {
    color: var(--danger);
    font-weight: 600;
  }
  
  .amount-credit {
    color: var(--success);
    font-weight: 600;
  }
  
  .balance-negative {
    color: var(--danger);
    font-weight: 600;
  }
  
  .balance-positive {
    color: var(--success);
    font-weight: 600;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .site-title {
      font-size: 1.8rem;
    }
  
    .file-input-container {
      padding: 25px 15px;
    }
  
    .file-input-container i {
      font-size: 42px;
    }
  
    .export-buttons {
      flex-direction: column;
    }
  
    .data-summary {
      flex-direction: column;
      gap: 15px;
      text-align: center;
    }
  }