/* /assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #2d3e50;
    --secondary-color: #34495e;
    --accent-color: #f39c12;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --border-radius: 12px;
    --box-shadow: 0 2px 16px rgba(44,62,80,0.07);
    --transition: all 0.3s ease;
}

body {
    background: #f4f6f8;
    font-family: 'Poppins', 'Segoe UI', 'Roboto', Arial, sans-serif;
    color: #222b45;
    font-size: 0.96rem;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Segoe UI', 'Roboto', Arial, sans-serif;
    font-weight: 600;
    color: #222b45;
    margin-bottom: 0.5em;
}

/* Responsive Typography */
@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
}

@media (max-width: 576px) {
    body {
        font-size: 0.85rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.9rem; }
    h6 { font-size: 0.85rem; }
}

/* Table Styles */
.table {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.table thead th {
    vertical-align: middle;
    background: #f8fafc;
    font-weight: 600;
    color: #2d3e50;
    border-bottom: 2px solid #e3eaf2;
    padding: 0.7rem 1rem;
    font-size: 0.97rem;
}

.table tbody td {
    vertical-align: middle;
    padding: 0.65rem 1rem;
    font-size: 0.96rem;
    border-bottom: 1px solid #f0f2f5;
}

.table-hover tbody tr:hover {
    background: #f4f8fb;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }
    
    .table thead th, 
    .table tbody td {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .table thead th {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .table thead th, 
    .table tbody td {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .table thead th {
        font-size: 0.8rem;
    }
}

/* Card Styles */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(44,62,80,0.12);
}

.card-title {
    font-weight: 600;
    color: #2d3e50;
    font-size: 1.08rem;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #e3eaf2;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Responsive Cards */
@media (max-width: 768px) {
    .card {
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .card-header {
        padding: 0.5rem 0.75rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.97rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #1a232c;
    border-color: #1a232c;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.btn-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
}

/* Responsive Buttons */
@media (max-width: 768px) {
    .btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn-sm {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .btn {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .btn-block {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Form Controls */
input.form-control, 
select.form-select, 
textarea.form-control {
    border-radius: 8px;
    border: 1.5px solid #d1d5db;
    background: #f8fafc;
    font-size: 0.96rem;
    transition: var(--transition);
    padding: 0.75rem 1rem;
}

input.form-control:focus, 
select.form-select:focus, 
textarea.form-control:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 2px #e3eaf2;
}

label, .form-label {
    font-weight: 500;
    color: #2d3e50;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Responsive Forms */
@media (max-width: 768px) {
    input.form-control, 
    select.form-select, 
    textarea.form-control {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    input.form-control, 
    select.form-select, 
    textarea.form-control {
        font-size: 0.85rem;
        padding: 0.5rem 0.7rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
}

/* Badge Styles */
.badge {
    border-radius: 6px;
    font-size: 0.93em;
    padding: 0.45em 0.8em;
    font-weight: 500;
}

/* Responsive Badges */
@media (max-width: 576px) {
    .badge {
        font-size: 0.8em;
        padding: 0.35em 0.6em;
    }
}

/* Container and Layout */
.container-fluid {
    padding: 2rem;
}

/* Responsive Container */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 0.75rem;
    }
}

/* Grid System Enhancements */
@media (max-width: 768px) {
    .col-xl-3 {
        margin-bottom: 1rem;
    }
    
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    .col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, 
    .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, 
    .col-md-10, .col-md-11, .col-md-12 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 576px) {
    .row {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
    
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    .col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, 
    .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, 
    .col-md-10, .col-md-11, .col-md-12 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* Utility Classes */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.d-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Responsive Utilities */
@media (max-width: 768px) {
    .d-md-none {
        display: none !important;
    }
    
    .d-md-block {
        display: block !important;
    }
    
    .text-md-center {
        text-align: center !important;
    }
    
    .mb-md-0 {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 576px) {
    .d-sm-none {
        display: none !important;
    }
    
    .d-sm-block {
        display: block !important;
    }
    
    .text-sm-center {
        text-align: center !important;
    }
    
    .mb-sm-0 {
        margin-bottom: 0 !important;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .table {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

body, html {
    overflow-x: hidden !important;
}
.navbar, .navbar-nav {
    overflow-x: visible !important;
}