/* Tellebirr Module Custom Styles */

/* Agent Management Styles */
.agent-card {
    transition: all 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.agent-status-badge {
    font-size: 0.8em;
    padding: 0.25em 0.5em;
}

.agent-status-active {
    background-color: #28a745;
    color: white;
}

.agent-status-dormant {
    background-color: #ffc107;
    color: black;
}

.agent-status-inactive {
    background-color: #dc3545;
    color: white;
}

.kyc-status-pending {
    background-color: #ffc107;
    color: black;
}

.kyc-status-approved {
    background-color: #28a745;
    color: white;
}

.kyc-status-rejected {
    background-color: #dc3545;
    color: white;
}

/* Transaction Forms */
.transaction-form .form-group {
    margin-bottom: 1.5rem;
}

.amount-input {
    font-size: 1.2em;
    font-weight: bold;
    text-align: right;
}

.amount-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.reference-input {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

/* Balance Display */
.balance-positive {
    color: #28a745;
    font-weight: bold;
}

.balance-negative {
    color: #dc3545;
    font-weight: bold;
}

.balance-zero {
    color: #6c757d;
}

/* Transaction Tables */
.transaction-table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.transaction-table td {
    vertical-align: middle;
}

.transaction-amount {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.dr-amount {
    color: #dc3545;
}

.cr-amount {
    color: #28a745;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5em;
}

.status-pending {
    background-color: #ffc107;
}

.status-completed {
    background-color: #28a745;
}

.status-failed {
    background-color: #dc3545;
}

/* Reports */
.report-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    margin: -1rem -1rem 2rem -1rem;
    border-radius: 0.375rem 0.375rem 0 0;
}

.report-summary-card {
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.report-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Dashboard Cards */
.dashboard-metric {
    text-align: center;
    padding: 1.5rem;
}

.metric-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #007bff;
    display: block;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.tellebirr-nav .nav-link {
    border-radius: 0.375rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.tellebirr-nav .nav-link:hover {
    background-color: rgba(0,123,255,0.1);
    color: #007bff;
}

.tellebirr-nav .nav-link.active {
    background-color: #007bff;
    color: white;
}

/* Alerts and Notifications */
.tellebirr-alert {
    border-left: 4px solid;
    border-radius: 0.375rem;
}

.alert-low-balance {
    border-left-color: #ffc107;
    background-color: rgba(255,193,7,0.1);
}

.alert-high-amount {
    border-left-color: #dc3545;
    background-color: rgba(220,53,69,0.1);
}

.alert-success-custom {
    border-left-color: #28a745;
    background-color: rgba(40,167,69,0.1);
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner-border-tellebirr {
    width: 3rem;
    height: 3rem;
    border-width: 0.25em;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .transaction-table {
        font-size: 12px;
    }

    .transaction-table th,
    .transaction-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .agent-card {
        margin-bottom: 1rem;
    }

    .transaction-form .form-group {
        margin-bottom: 1rem;
    }

    .amount-input {
        font-size: 1em;
    }

    .metric-value {
        font-size: 2em;
    }

    .report-header {
        padding: 1rem;
        margin: -0.75rem -0.75rem 1rem -0.75rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .agent-card {
        background-color: #2d3748;
        border-color: #4a5568;
    }

    .transaction-table th {
        background-color: #2d3748;
        color: #e2e8f0;
    }

    .report-summary-card {
        background-color: #2d3748;
        border-color: #4a5568;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.form-control:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}