/**
 * Demo CSS for Finance Transaction System
 * Contains custom styles and overrides for the application
 */

/* Custom styles for the finance application */
.custom-dropdown-bg {
    background-color: #f8f9fa;
}

.drop-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.drop-area:hover {
    border-color: #007bff;
}

.drop-area.dragover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.file-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.file-list li {
    background: #f8f9fa;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-list .remove-file {
    color: #dc3545;
    cursor: pointer;
    font-weight: bold;
}

.file-list .remove-file:hover {
    color: #c82333;
}

/* Transaction status badges */
.badge.bg-submitted {
    background-color: #ffc107 !important;
}

.badge.bg-under-review {
    background-color: #17a2b8 !important;
}

.badge.bg-processing {
    background-color: #007bff !important;
}

.badge.bg-sent-back {
    background-color: #dc3545 !important;
}

.badge.bg-payroll {
    background-color: #6c757d !important;
}

.badge.bg-paid {
    background-color: #28a745 !important;
}

/* Notification styles */
.notification-item {
    border-bottom: 1px solid #eee;
    padding: 10px 15px;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
}

/* Timeline styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #007bff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #dee2e6;
}

/* Card enhancements */

/* Button enhancements */
.btn-group .btn {
    margin-right: 0;
}

.btn-sm {
    font-size: 0.875rem;
}



/* Form enhancements */
.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Loading states */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Avatar styles */
.avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 500;
}

/* Pagination styles */
.pagination .page-link {
    color: #007bff;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 5px;
        border-radius: 0.375rem !important;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    .btn, .dropdown, .navbar, .sidebar {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Accessibility improvements */
.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 styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Logo centering styles */
.logo-container {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.logo-container .brand {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0.5rem;
    text-decoration: none;
    width: 100%;
}

.logo-centered {
    transition: transform 0.2s ease;
}

.logo-centered:hover {
    transform: scale(1.05);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-centered {
        width: 40px !important;
    }
}

@media (min-width: 1200px) {
    .logo-centered {
        width: 60px !important;
    }
}
