/* Dashboard Styles */

:root {
    --primary-gradient: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    --success-gradient: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
    --info-gradient: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
    --warning-gradient: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
    --danger-gradient: linear-gradient(135deg, #e74a3b 0%, #be2617 100%);
    --secondary-gradient: linear-gradient(135deg, #858796 0%, #60616f 100%);
    --light-gradient: linear-gradient(135deg, #f8f9fc 0%, #c6d4f0 100%);
    --dark-gradient: linear-gradient(135deg, #5a5c69 0%, #373840 100%);
}

/* Stat Cards */
.stat-card {
    position: relative;
    padding: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 0.75rem;
    border: none;
    height: 100%;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.stat-card.primary-card {
    background: var(--primary-gradient);
    color: white;
}

.stat-card.success-card {
    background: var(--success-gradient);
    color: white;
}

.stat-card.info-card {
    background: var(--info-gradient);
    color: white;
}

.stat-card.warning-card {
    background: var(--warning-gradient);
    color: white;
}

.stat-card.danger-card {
    background: var(--danger-gradient);
    color: white;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    opacity: 0.25;
    color: inherit;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-icon {
    opacity: 0.4;
}

.stat-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
}

.stat-value small {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
    margin-left: 0.5rem;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
}

.stat-change i {
    margin-right: 0.25rem;
}

/* Responsive Tables */
.table-responsive-cards {
    width: 100%;
    overflow-x: auto;
    border-radius: 0.75rem;
}

.table-responsive-cards table {
    margin-bottom: 0;
}

.table-responsive-cards thead th {
    background-color: rgba(78, 115, 223, 0.05);
    border-bottom: 2px solid rgba(78, 115, 223, 0.1);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
}

.table-responsive-cards tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

.table-responsive-cards tbody td {
    vertical-align: middle;
    padding: 0.75rem 1rem;
}

@media (max-width: 767.98px) {
    .table-responsive-cards table {
        border: 0;
    }
    
    .table-responsive-cards table thead {
        display: none;
    }
    
    .table-responsive-cards table tr {
        display: block;
        margin-bottom: 1rem;
        border-radius: 0.75rem;
        box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075);
        background-color: #fff;
        overflow: hidden;
    }
    
    .table-responsive-cards table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 0.75rem 1rem;
        border-top: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .table-responsive-cards table td:last-child {
        border-bottom: 0;
    }
    
    .table-responsive-cards table td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 1rem;
        text-align: left;
        flex: 1;
    }
}

/* Card Styles */
.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.card .card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card .card-body {
    padding: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card Variations */
.card.border-start-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.card.border-start-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.card.border-start-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.card.border-start-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.card.border-start-danger {
    border-left: 0.25rem solid #e74a3b !important;
}

/* Notification Styles */
.list-group-item {
    transition: all 0.2s ease;
    border-radius: 0.75rem !important;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

.list-group-item:hover {
    background-color: rgba(78, 115, 223, 0.05);
    border-color: rgba(78, 115, 223, 0.1);
}

.list-group-item-action:focus, .list-group-item-action:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

/* Button Styles */
.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Quick Action Buttons */
.btn-outline-primary, 
.btn-outline-success, 
.btn-outline-danger, 
.btn-outline-info, 
.btn-outline-secondary {
    transition: all 0.3s ease;
}

.btn-outline-primary:hover, 
.btn-outline-success:hover, 
.btn-outline-danger:hover, 
.btn-outline-info:hover, 
.btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.5rem;
}

.badge.bg-opacity-10 {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Status Badges */
.badge.badge-success-soft {
    background-color: rgba(28, 200, 138, 0.1);
    color: #1cc88a;
}

.badge.badge-primary-soft {
    background-color: rgba(78, 115, 223, 0.1);
    color: #4e73df;
}

.badge.badge-info-soft {
    background-color: rgba(54, 185, 204, 0.1);
    color: #36b9cc;
}

.badge.badge-warning-soft {
    background-color: rgba(246, 194, 62, 0.1);
    color: #f6c23e;
}

.badge.badge-danger-soft {
    background-color: rgba(231, 74, 59, 0.1);
    color: #e74a3b;
}

/* Dashboard Layout */
.dashboard-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.dashboard-col {
    flex: 0 0 auto;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-bottom: 1.5rem;
}

.dashboard-col-lg {
    width: 100%;
}

@media (min-width: 992px) {
    .dashboard-col-lg {
        width: 50%;
    }
}

.dashboard-col-xl {
    width: 100%;
}

@media (min-width: 1200px) {
    .dashboard-col-xl {
        width: 33.333333%;
    }
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 20rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 1.5rem;
}

.dashboard-header .title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5a5c69;
    margin-bottom: 0.5rem;
}

.dashboard-header .subtitle {
    font-size: 1rem;
    color: #858796;
    margin-bottom: 1rem;
}

.dashboard-header .date-range {
    font-size: 0.875rem;
    color: #858796;
    background-color: #f8f9fc;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    display: inline-block;
}

/* Dashboard Section */
.dashboard-section {
    margin-bottom: 2rem;
}

.dashboard-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Progress Bars */
.progress {
    height: 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
}

.progress-bar {
    border-radius: 0.5rem;
}

/* Mobile Optimizations */
@media (max-width: 575.98px) {
    .stat-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-icon {
        font-size: 1.75rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .card .card-header {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .card .card-body {
        padding: 1rem;
    }
    
    .chart-container {
        height: 15rem;
    }
    
    .dashboard-col {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .table-responsive-cards tbody td {
        padding: 0.5rem;
    }
    
    .dashboard-header .title {
        font-size: 1.25rem;
    }
    
    .dashboard-header .subtitle {
        font-size: 0.875rem;
    }
    
    .dashboard-section-title {
        font-size: 1.1rem;
    }
}

/* Tablet Optimizations */
@media (min-width: 576px) and (max-width: 991.98px) {
    .dashboard-col {
        margin-bottom: 1.25rem;
    }
    
    .stat-card {
        margin-bottom: 0.5rem;
    }
    
    .chart-container {
        height: 18rem;
    }
    
    .dashboard-row {
        flex-wrap: wrap;
    }
    
    .dashboard-col-lg {
        width: 100%;
    }
}

/* Footer Styles */
.footer {
    padding: 1rem 0;
    margin-top: 2rem;
    background-color: #f8f9fc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-brand {
    font-weight: 600;
    color: #4e73df;
}

@media (max-width: 767.98px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content > div {
        margin-bottom: 0.5rem;
    }
}
