﻿/* Transactions Management Styles */

/* Search and Filter Panel */
.search-filter-panel {
    background: #f8f9fa;
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .search-filter-panel .panel-heading {
        background: linear-gradient(135deg, #042d62 0%, #042d62 100%);
        color: white;
        border-radius: 6px 6px 0 0;
        padding: 12px 15px;
        margin: -20px -20px 20px -20px;
    }

    .search-filter-panel .panel-title {
        margin: 0;
        font-size: 1.1em;
        font-weight: 600;
    }
.panel-success .panel-heading {
    background: linear-gradient(135deg, #042d62 0%, #042d62 100%) !important;
    color: white !important;
    border: none;
}

.panel-success {
    border-color: #27ae60;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .btn-success:hover {
        background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
    }

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .btn-danger:hover {
        background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
    }

/* Date picker styling */
input[type="date"] {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.btn-group .btn {
    margin-right: 5px;
}

/* Responsive styling for export section */
@@media (max-width: 768px) {
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

        .btn-group .btn {
            margin-right: 0;
            margin-bottom: 5px;
        }
}
/* Form Controls Enhancement */
.form-inline .form-group {
    margin-bottom: 15px;
    margin-right: 15px;
}

.form-inline label {
    margin-right: 8px;
    font-weight: 600;
    color: #495057;
}

.form-control {
    border: 1px solid #d1d3e2;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: #042d62;
        box-shadow: 0 0 0 0.2rem rgba(4, 45, 98, 0.25);
    }

/* Table Styles */
.table-responsive {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.table {
    margin-bottom: 0;
    background: white;
}

    .table th {
        background: linear-gradient(135deg, #042d62 0%, #042d62 100%);
        color: white;
        border: none;
        padding: 15px 12px;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.85em;
        letter-spacing: 0.5px;
    }

        .table th a {
            color: white;
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .table th a:hover {
                color: #e3f2fd;
                text-decoration: underline;
            }

    .table td {
        padding: 12px;
        vertical-align: middle;
        border-color: #e3e6f0;
    }

    .table tbody tr {
        transition: all 0.3s ease;
    }

        .table tbody tr:hover {
            background-color: #f8f9fa;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

/* Status Labels */
.label {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-danger {
    background: #e74c3c;
    color: white;
}

.label-success {
    background: #27ae60;
    color: white;
}

.label-warning {
    background: #f39c12;
    color: white;
}

.label-info {
    background: #3498db;
    color: white;
}

/* Button Styles */
.btn {
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    padding: 8px 16px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 0.75em;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

    .btn-success:hover {
        background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
    }

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    }

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

    .btn-danger:hover {
        background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
    }

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

    .btn-info:hover {
        background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
    }

.btn-default {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

    .btn-default:hover {
        background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
    }

/* Button Groups */
.btn-group .btn {
    margin-right: 2px;
}

    .btn-group .btn:last-child {
        margin-right: 0;
    }

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #27ae60;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    border-left: 4px solid #e74c3c;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Deposit Slip Preview */
.deposit-slip-preview {
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .deposit-slip-preview:hover {
        border-color: #042d62;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .deposit-slip-preview .glyphicon-picture {
        color: #042d62;
        transition: transform 0.3s ease;
    }

    .deposit-slip-preview:hover .glyphicon-picture {
        transform: scale(1.1);
    }

/* Verification Section */
.verification-section .list-group-item {
    border: 1px solid #e3e6f0;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

    .verification-section .list-group-item:hover {
        background: #f8f9fa;
        transform: translateX(5px);
    }

.verification-section .glyphicon-ok {
    color: #27ae60;
}

/* Panel Styles */
.panel {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e3e6f0;
}

.panel-default .panel-heading {
    background: linear-gradient(135deg, #042d62 0%, #042d62 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    border: none;
    padding: 15px 20px;
}

.panel-info .panel-heading {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    border: none;
}

.panel-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.panel-body {
    padding: 20px;
}

/* Checkbox Styles */
.checkbox label {
    font-weight: 600;
    color: #495057;
    transition: color 0.3s ease;
}

.checkbox input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.checkbox label:hover {
    color: #042d62;
}

/* Sort Icons */
.glyphicon-sort-by-attributes,
.glyphicon-sort-by-attributes-alt {
    margin-left: 5px;
    font-size: 0.8em;
}

/* Status Text Colors */
.text-warning {
    color: #f39c12 !important;
    font-weight: 600;
}

.text-success {
    color: #27ae60 !important;
    font-weight: 600;
}

.text-info {
    color: #3498db !important;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-filter-panel {
        padding: 15px;
    }

    .form-inline .form-group {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .form-inline .form-control {
        width: 100%;
        margin-bottom: 10px;
    }

    .table-responsive {
        border: 1px solid #e3e6f0;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
    }

        .btn-group .btn {
            margin-bottom: 5px;
            margin-right: 0;
        }

            .btn-group .btn:last-child {
                margin-bottom: 0;
            }
}

@media (max-width: 576px) {
    .panel-body {
        padding: 15px;
    }

    .table th,
    .table td {
        padding: 8px 6px;
        font-size: 0.9em;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.85em;
    }
}

/* Animation for loading states */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Custom scrollbar for table */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    }

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.checkbox input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .search-filter-panel,
    .btn-group,
    .alert {
        display: none;
    }

    .table {
        box-shadow: none;
        border: 1px solid #ddd;
    }

        .table th {
            background: #f8f9fa !important;
            color: #000 !important;
        }
}
