/* AdminLTE Custom Styles for FinMIS - Green & Orange Theme */

/* Fix for body padding when using AdminLTE */
body.hold-transition {
    overflow-x: hidden;
}

/* Custom card enhancements */
.card {
    border-radius: 8px;
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
}

.card-header {
    border-bottom: 1px solid #f4f4f4;
    background-color: transparent;
}

/* Small box customizations */
.small-box {
    border-radius: 8px;
    position: relative;
    display: block;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.small-box > .inner {
    padding: 10px;
}

.small-box .icon {
    position: absolute;
    top: auto;
    bottom: 5px;
    right: 5px;
    z-index: 0;
    font-size: 70px;
    color: rgba(40, 167, 69, 0.15);
}

.small-box .icon > i {
    font-weight: 300;
    margin: 0;
}

.small-box .small-box-footer {
    position: relative;
    text-align: center;
    padding: 3px 0;
    color: #fff;
    color: rgba(255,255,255,0.8);
    display: block;
    z-index: 10;
    background: rgba(40, 167, 69, 0.2);
    text-decoration: none;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    font-size: 12px;
}

.small-box h3 {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    white-space: nowrap;
    padding: 0;
}

.small-box p {
    font-size: 1rem;
}

.small-box h3, .small-box p {
    z-index: 5;
    position: relative;
}

/* Button app customizations */
.btn-app {
    border-radius: 8px;
    position: relative;
    padding: 15px 5px;
    margin: 0 0 10px 10px;
    min-width: 80px;
    height: 60px;
    text-align: center;
    color: #444;
    border: 1px solid #ddd;
    background-color: #f4f4f4;
    font-size: 12px;
}

.btn-app > i {
    font-size: 20px;
    display: block;
}

/* Badge customizations for Bootstrap 4 compatibility */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

.badge-secondary {
    background-color: #6c757d;
}

.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #4caf50 100%);
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e85a5a 100%);
}

.badge-warning {
    background: linear-gradient(135deg, #fd7e14 0%, #ff922b 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.badge-primary {
    background: linear-gradient(135deg, #28a745 0%, #fd7e14 100%);
}

/* Table enhancements */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    background: linear-gradient(135deg, #28a745 0%, #fd7e14 100%);
    color: white;
}

.table th a {
    color: white !important;
    text-decoration: none;
}

.table th a:hover {
    color: rgba(255,255,255,0.8) !important;
}

.table td {
    color: #333 !important;
    background: white !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(40, 167, 69, 0.03);
}

.table-striped tbody tr:nth-of-type(odd) td {
    background-color: rgba(40, 167, 69, 0.03);
}

/* List group customizations */
.list-group-item {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0;
}

.list-group-item:first-child {
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.list-group-item:last-child {
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.list-group-flush .list-group-item {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

.list-group-flush .list-group-item:first-child {
    border-top: 0;
}

.list-group-flush .list-group-item:last-child {
    border-bottom: 0;
}

/* Alert enhancements */
.alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(253, 126, 20, 0.1) 100%);
    color: #721c24;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(253, 126, 20, 0.1) 100%);
    color: #155724;
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(253, 126, 20, 0.1) 100%);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.1) 0%, rgba(255, 146, 43, 0.1) 100%);
    color: #856404;
}

/* Empty state styling */
.text-center .fa-3x {
    font-size: 3em;
}

.text-center .fa-2x {
    font-size: 2em;
}

/* Sidebar enhancements */
.nav-sidebar .nav-link.active {
    background: linear-gradient(135deg, #28a745 0%, #fd7e14 100%);
    color: #fff;
}

.nav-sidebar .nav-link.active .nav-icon {
    color: #fff;
}

/* Brand link customizations */
.brand-link {
    border-bottom: 1px solid #4f5962;
}

.brand-link:hover {
    color: #fff;
    text-decoration: none;
}

/* User panel customizations */
.user-panel {
    border-bottom: 1px solid #4f5962;
}

/* Content wrapper enhancements */
.content-wrapper {
    background-color: #f4f6f9;
}

/* Footer customizations */
.main-footer {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    color: #666;
}

/* Navbar customizations */
.main-header {
    border-bottom: 1px solid #dee2e6;
}

/* Dropdown menu enhancements */
.dropdown-menu {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.7rem 1.2rem;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #28a745 0%, #fd7e14 100%);
    color: white;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .small-box {
        text-align: center;
    }
    
    .small-box .icon {
        display: none;
    }
    
    .btn-app {
        width: 100%;
        margin: 0 0 10px 0;
    }
}

/* Custom spacing utilities */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Text utilities */
.text-muted {
    color: #6c757d !important;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-warning {
    color: #fd7e14 !important;
}

/* Nav icon colors for sidebar */
.nav-icon.text-primary {
    color: #28a745 !important;
}

.nav-icon.text-success {
    color: #28a745 !important;
}

.nav-icon.text-warning {
    color: #fd7e14 !important;
}

.nav-icon.text-danger {
    color: #dc3545 !important;
}

.nav-icon.text-info {
    color: #17a2b8 !important;
}

.nav-icon.text-orange {
    color: #fd7e14 !important;
}

/* Circle nav icon colors */
.nav-icon.far.fa-circle.text-primary {
    color: #28a745 !important;
}

.nav-icon.far.fa-circle.text-success {
    color: #28a745 !important;
}

.nav-icon.far.fa-circle.text-warning {
    color: #fd7e14 !important;
}

.nav-icon.far.fa-circle.text-danger {
    color: #dc3545 !important;
}

.nav-icon.far.fa-circle.text-info {
    color: #17a2b8 !important;
}

.nav-icon.far.fa-circle.text-orange {
    color: #fd7e14 !important;
}
