/* File: assets/css/style.css */
/* Main stylesheet with soft blue theme and Poppins font */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --primary-light: #E8F4FD;
    --secondary-color: #6C757D;
    --success-color: #28A745;
    --danger-color: #DC3545;
    --warning-color: #FFC107;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-muted: #6C757D;
    --border-color: #DEE2E6;
    --shadow: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
}

/* Utility Classes */
.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

/* Container Adjustments */
.container-fluid {
    max-width: 1400px;
    padding-left: 6px;
    padding-right: 6px;
}

/* Cards */
.card {
    border: none;
    border-radius: 6px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px 8px 0 0 !important;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 13px;
}

/* Forms */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* DataTables Customization */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_filter input {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
}

.dataTables_length select {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    margin: 0 0.5rem;
}

table.dataTable thead th {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem 0.75rem;
}

table.dataTable tbody tr {
    transition: background-color 0.2s;
}

table.dataTable tbody tr:hover {
    background-color: var(--primary-light);
}

table.dataTable tbody td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
}

.dataTables_paginate .paginate_button {
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    margin: 0 2px;
}

.dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    color: white !important;
    border: 1px solid var(--primary-color) !important;
}

/* Action Icons */
.action-icon {
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    margin: 0 0.25rem;
}

.action-icon:hover {
    transform: scale(1.15);
}

.edit-icon {
    color: var(--primary-color);
}

.edit-icon:hover {
    color: var(--primary-dark);
}

.delete-icon {
    color: var(--danger-color);
}

.delete-icon:hover {
    color: #BD2130;
}

/* Modal Customization */
.modal-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px 8px 0 0;
}

.modal-content {
    border-radius: 8px;
    border: none;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Badge */
.badge {
    padding: 0.4rem 0.75rem;
    font-weight: 500;
    border-radius: 4px;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay.active {
    display: flex;
}

/* Alert Customization */
.alert {
    border-radius: 6px;
    border: none;
    padding: 1rem 1.25rem;
}

/* Navbar/Header */
.app-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 3px 0;
}

.app-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
}

/* Filter Section */
.filter-section {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.45rem 1rem;
        font-size: 13px;
    }
    
    .card-header {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    table.dataTable thead th,
    table.dataTable tbody td {
        padding: 0.625rem 0.5rem;
        font-size: 13px;
    }
    
    .action-icon {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 13px;
    }
    
    .app-title {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
    
    .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 12px;
    }
}