/* style.css - პროექტის ძირითადი სტილები (Clean & Modern) */

/* *** 1. GENERAL & TYPOGRAPHY *** */
body { 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    margin: 0; 
    padding: 20px; 
    background-color: #f4f7f6; 
    color: #333;
    line-height: 1.6;
}
h1 { 
    color: #1e88e5; 
    border-bottom: 2px solid #e0e0e0; 
    padding-bottom: 10px; 
    margin-bottom: 20px; 
    font-size: 2em;
}
h2 { 
    color: #555; 
    margin-top: 30px; 
    border-left: 5px solid #1e88e5; 
    padding-left: 10px; 
    font-size: 1.5em;
}
h3 { color: #777; }
hr { border: 0; border-top: 1px solid #e0e0e0; margin: 30px 0; }
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* *** 2. NAVIGATION & LINKS *** */
.nav-links {
    display: flex;
    gap: 10px; /* დამატებულია gap */
}
.nav-links a { 
    text-decoration: none; 
    color: #1e88e5; 
    padding: 8px 12px; 
    font-weight: bold;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 4px;
    white-space: nowrap;
}
.nav-links a:hover { 
    color: white; 
    background-color: #1e88e5;
}

/* *** 3. STATS & MESSAGES - განახლებული სტილი (ბარათები) *** */

.stats-grid { 
    display: flex; /* Flexbox ჩართვა */
    gap: 20px; 
    margin-bottom: 20px; 
}
.stats-grid.three-col .info-card {
    flex: 1; /* ბლოკების თანაბრად განაწილება */
    min-width: 300px; /* მინიმალური სიგანე */
}

.info-card, .card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* მთავარი, დიდი სტატისტიკის ბლოკი (ჯამური) */
.info-card.main-stats h2 {
    margin-top: 0;
    margin-bottom: 15px;
    border-left: none;
    padding-left: 0;
    color: #333;
}
.info-card.main-stats p {
    margin: 5px 0;
}
.info-card.main-stats .amount {
    font-size: 1.6em;
    font-weight: bold;
    color: #dc3545; /* წითელი ფერი ჯამური ბალანსისთვის */
}

/* TBC / BOG სტატისტიკის ბარათები */
.info-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1e88e5;
}
.info-card p {
    margin: 5px 0;
}
.info-card .amount {
    font-size: 1.4em;
    font-weight: bold;
    color: #28a745; /* მწვანე ფერი ბალანსისთვის */
}

/* ღილაკები ბარათებში */
.action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}
.info-card .action-buttons button, 
.form-actions button, 
.filter-form button {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap; /* დამატებულია */
}
.info-card .action-buttons button:hover, 
.form-actions button:hover, 
.filter-form button:hover {
    background-color: #1565c0;
}

/* Toggle ღილაკის სტილი - nav-links-ის იერსახით */
.toggle-table-btn {
    background-color: transparent !important;
    color: #1e88e5 !important; 
    border: 1px solid #1e88e5 !important;
    font-weight: bold;
    padding: 8px 12px !important;
    transition: background-color 0.2s, color 0.2s;
}
.toggle-table-btn:hover {
    background-color: #1e88e5 !important;
    color: white !important;
}

/* შეტყობინებების ბოქსები */
.message-box {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: bold;
}
.message-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.message-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* *** 4. FILTERS & SEARCH (Forms) *** */
.filter-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.filter-form .form-group {
    display: flex;
    flex-direction: column;
    margin-right: 15px;
}
.filter-form label {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
}
.filter-form input, .filter-form select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.filter-form button {
    height: 34px; /* Align with input fields */
}

/* *** 5. TABLES *** */
.bank-table-container {
    /* კონტეინერი ცხრილის და სათაურის ერთად დასამალად */
    transition: max-height 0.5s ease-in-out;
    overflow: hidden;
    margin-bottom: 30px;
}
.bank-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.bank-table th, .bank-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.bank-table th {
    background-color: #1e88e5;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}
.bank-table tr:hover {
    background-color: #f5f5f5;
}
.bank-table .balance-neg { color: #dc3545; font-weight: bold; }
.bank-table .balance-pos { color: #28a745; font-weight: bold; }

/* Utility Classes */
.hidden-by-default {
    display: none; /* ცხრილის და სათაურის დასამალად */
}
.warning-red {
    color: #dc3545; /* წითელი ფერი ყურადღების მისაქცევი ტექსტისთვის */
    font-weight: bold;
}


/* *** 6. ADD_BANK_DETAILS.PHP SPECIFIC STYLES *** */

/* Driver Info Block */
.form-driver-info {
    background-color: #e3f2fd; 
    color: #1e88e5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.form-driver-info span {
    color: #333;
    font-weight: normal;
    margin-right: 15px;
}

/* Bank Type Selection (Radio Buttons) */
.bank-type-selection {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #fafafa;
}
.bank-type-selection label {
    font-weight: bold;
    color: #555;
    cursor: pointer;
}

/* Bank Sections (Visibility Fix) */
.bank-section {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
    transition: all 0.3s ease-in-out;
    display: none; 
}
.bank-section.active {
    display: block; 
}
.bank-section h3 {
    margin-top: 0;
    color: #1e88e5;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 10px;
}
.bank-section input[type="text"] {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 5px;
}

/* Form Actions */
.form-actions {
    margin-top: 20px;
}
.form-actions button {
    padding: 12px 20px;
    font-size: 1.1em;
}

/* Custom class for delete buttons/links (Deletion Fix) */
.delete-link {
    color: #dc3545 !important; 
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}
.delete-link:hover {
    color: #a71d2a !important;
    text-decoration: underline;
}