/**
 * Custom CSS for Dionela Associates Monitoring System
 * 
 * This file contains custom styles for the application, including branding colors,
 * modern typography, and UI enhancements.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    /* Brand Colors */
    --primary-color: #37377d;    /* Deep blue */
    --secondary-color: #ec8338;  /* Orange */
    --accent-color: #c8906e;     /* Gold */
    
    /* Shades and tints */
    --primary-dark: #2a2a5e;
    --primary-light: #5959a6;
    --secondary-dark: #d06c1e;
    --secondary-light: #f5a05c;
    
    /* Neutrals */
    --light-gray: #f8f9fa;
    --medium-gray: #ced4da;
    --dark-gray: #6c757d;
    
    /* Typography */
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Line Heights */
    --lh-tight: 1.5;
    --lh-normal: 1.6;
    --lh-relaxed: 1.75;
    --lh-loose: 2;
    
    /* Letter Spacing */
    --ls-tighter: -0.02em;
    --ls-tight: -0.015em;
    --ls-normal: 0em;
    --ls-wide: 0.025em;
    --ls-wider: 0.05em;
}

/* General styles */
body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--lh-normal);
    color: #333;
    font-weight: 400;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: var(--text-5xl);
    letter-spacing: var(--ls-tighter);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: var(--text-4xl);
    letter-spacing: var(--ls-tight);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: var(--text-3xl);
    letter-spacing: var(--ls-tight);
    margin-bottom: 1rem;
}

h4 {
    font-family: var(--font-sans);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: 0.875rem;
}

h5 {
    font-family: var(--font-sans);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h6 {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Buttons */
button, .btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: var(--ls-wide);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-weight: 600;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Forms */
label, .form-label {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: var(--text-sm);
    margin-bottom: 0.5rem;
    color: #333;
}

.form-control, .form-select, textarea {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--lh-normal);
    font-weight: 400;
}

.form-control:focus, .form-select:focus, textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(55, 55, 125, 0.25);
}

.form-text {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--dark-gray);
    margin-top: 0.25rem;
}

.form-control::placeholder {
    color: #999;
    font-weight: 400;
}

/* Headers */
.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.page-header h1, 
.page-header h2, 
.page-header h3 {
    color: var(--primary-color);
}

/* Card styles */
.card-header {
    background-color: var(--primary-color);
    color: white;
}

.card-accent {
    border-top: 3px solid var(--accent-color);
}

/* Navigation */
.navbar-custom {
    background-color: var(--primary-color);
}

.navbar-custom .navbar-brand {
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
}

.navbar-custom .nav-link {
    color: white;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: var(--text-sm);
    letter-spacing: var(--ls-wide);
}

.navbar-custom .nav-link:hover {
    color: var(--secondary-light);
}

/* Tables */
table {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
}

.table-header, thead {
    background-color: var(--primary-light);
    color: white;
}

.table-header th, thead th {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: var(--ls-wide);
    padding: 0.75rem;
}

tbody td {
    font-size: var(--text-sm);
    line-height: var(--lh-normal);
    padding: 0.75rem;
}

/* Alerts */
.alert-primary {
    background-color: rgba(55, 55, 125, 0.15);
    border-color: rgba(55, 55, 125, 0.4);
    color: var(--primary-dark);
}

.alert-secondary {
    background-color: rgba(236, 131, 56, 0.15);
    border-color: rgba(236, 131, 56, 0.4);
    color: var(--secondary-dark);
}

/* Custom form elements */
.required-field::after {
    content: " *";
    color: red;
}

.form-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

/* Dashboard elements */
.stat-card {
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card-primary {
    border-left-color: var(--primary-color);
}

.stat-card-secondary {
    border-left-color: var(--secondary-color);
}

.stat-card-accent {
    border-left-color: var(--accent-color);
}

/* Utilities */
.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.bg-accent-custom {
    background-color: var(--accent-color) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

/* Status Badges - Improved Contrast */
.badge {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
}

.badge-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.badge-info {
    background-color: #0dcaf0;
    color: #000000;
}

.badge-warning {
    background-color: #ffc107;
    color: #000000;
}

.badge-primary {
    background-color: #0d6efd;
    color: #ffffff;
}

.badge-success {
    background-color: #198754;
    color: #ffffff;
}

.badge-danger {
    background-color: #dc3545;
    color: #ffffff;
}

/* Status Filter Group - Multi-select Checkboxes */
.status-filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.status-filter-group .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.status-filter-group .form-check-input {
    margin-right: 0.5rem;
    cursor: pointer;
}

.status-filter-group .form-check-label {
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

/* Typography Utility Classes */
.font-sans {
    font-family: var(--font-sans);
}

.font-serif {
    font-family: var(--font-serif);
}

.font-display {
    font-family: var(--font-display);
}

.text-xs {
    font-size: var(--text-xs);
    line-height: var(--lh-tight);
}

.text-sm {
    font-size: var(--text-sm);
    line-height: var(--lh-tight);
}

.text-base {
    font-size: var(--text-base);
    line-height: var(--lh-normal);
}

.text-lg {
    font-size: var(--text-lg);
    line-height: var(--lh-relaxed);
}

.text-xl {
    font-size: var(--text-xl);
    line-height: var(--lh-relaxed);
}

.text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--lh-loose);
}

.text-3xl {
    font-size: var(--text-3xl);
    line-height: var(--lh-loose);
}

.text-4xl {
    font-size: var(--text-4xl);
    line-height: 2.5;
}

.text-5xl {
    font-size: var(--text-5xl);
    line-height: 1;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.leading-tight {
    line-height: var(--lh-tight);
}

.leading-normal {
    line-height: var(--lh-normal);
}

.leading-relaxed {
    line-height: var(--lh-relaxed);
}

.leading-loose {
    line-height: var(--lh-loose);
}

.tracking-tighter {
    letter-spacing: var(--ls-tighter);
}

.tracking-tight {
    letter-spacing: var(--ls-tight);
}

.tracking-normal {
    letter-spacing: var(--ls-normal);
}

.tracking-wide {
    letter-spacing: var(--ls-wide);
}

.tracking-wider {
    letter-spacing: var(--ls-wider);
}

/* Heading Utility Classes */
.heading-1 {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 700;
    letter-spacing: var(--ls-tighter);
    line-height: 1.2;
}

.heading-2 {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: var(--ls-tight);
    line-height: 1.2;
}

.heading-3 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: var(--ls-tight);
    line-height: 1.2;
}

.heading-4 {
    font-family: var(--font-sans);
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1.3;
}

.heading-5 {
    font-family: var(--font-sans);
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.4;
}

.heading-6 {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.4;
}

/* Body Text Utility Classes */
.body-large {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    line-height: var(--lh-relaxed);
    font-weight: 400;
}

.body-normal {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--lh-normal);
    font-weight: 400;
}

.body-small {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    line-height: var(--lh-tight);
    font-weight: 400;
}

/* Caption and Label Utility Classes */
.caption {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    line-height: var(--lh-tight);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
}

.label {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    line-height: var(--lh-tight);
    font-weight: 600;
    letter-spacing: var(--ls-wide);
}
