/* ==========================================================================
   TRANSUL GEROT v1 - TAILWIND CUSTOM STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

/* Dark theme variables support */
.dark {
    --bg-main: #0f172a;
    --card-bg: #1e293b;
    --border-color: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Base Card Transition */
.tailwind-card {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
}

.tailwind-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Custom KPI Border Colors */
.kpi-border-primary { border-left: 4px solid #3b82f6; }
.kpi-border-success { border-left: 4px solid #22c55e; }
.kpi-border-warning { border-left: 4px solid #eab308; }
.kpi-border-danger { border-left: 4px solid #ef4444; }

/* Custom Buttons & Interactions */
.btn-tailwind-primary {
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-tailwind-primary:hover {
    background-color: #1d4ed8;
}

/* Form Customizations */
.form-input-tailwind {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 0.75rem;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input-tailwind:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Modal and Overlay styles */
.modal-backdrop-tailwind {
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

/* Badge Utility Styles */
.badge-success {
    background-color: #dcfce7;
    color: #15803d;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-warning {
    background-color: #fef9c3;
    color: #a16207;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-info {
    background-color: #dbeafe;
    color: #1d4ed8;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Table Utilities */
.table-tailwind {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.table-tailwind th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.table-tailwind td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Media Query Mobile Adjustments */
@media (max-width: 768px) {
    .mobile-full-width {
        width: 100% !important;
    }
}

/* Printing Style Optimization */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background-color: #ffffff !important;
    }
}