@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --primary-color: #1e40af;
    /* Corporate Blue */
    --primary-hover: #1e3a8a;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --bg-color: #f8fafc;
    --sidebar-bg: #0f172a;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

html,
body {
    font-family: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: #1e293b;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #0f172a;
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.border-left-primary {
    border-left: 5px solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 5px solid var(--success-color) !important;
}

.border-left-warning {
    border-left: 5px solid #f59e0b !important;
}

.border-left-info {
    border-left: 5px solid #3b82f6 !important;
}

.border-left-secondary {
    border-left: 5px solid var(--secondary-color) !important;
}

.border-left-danger {
    border-left: 5px solid #ef4444 !important;
}

.sidebar {
    background-color: var(--sidebar-bg);
}

.sidebar .nav-item a {
    color: #94a3b8;
    border-radius: 8px;
    margin: 4px 16px;
    padding: 10px 16px;
}

.sidebar .nav-item a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
}

.sidebar .nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Enhancements */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.form-control {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.15);
}

.table th {
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-top: none;
}

/* Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary-color);
}

.fadeIn {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.history-item {
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.history-item:hover {
    background-color: rgba(30, 64, 175, 0.05) !important;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}