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

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f6fa;
    min-height: 100vh;
}

body.login-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: -0.5px;
}

.content-wrapper {
    flex: 1;
    padding: 20px;
    margin-left: 250px;
    margin-top: 56px;
    transition: margin-left 0.3s;
}

@media (max-width: 768px) {
    .content-wrapper {
        margin-left: 0;
        padding: 15px;
        margin-top: 56px;
    }
}

.sidebar {
    width: 250px;
    height: calc(100vh - 56px);
    position: fixed;
    left: 0;
    top: 56px;
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
}

.sidebar .list-group-item {
    border: none;
    border-radius: 0;
    padding: 12px 20px;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar .list-group-item:hover {
    background: #f8f9fa;
    color: #0d6efd;
}

.sidebar .list-group-item.active {
    background: #e7f1ff;
    color: #0d6efd;
    border-right: 3px solid #0d6efd;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s;
}

.btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

.btn-success {
    background: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background: #157347;
    border-color: #157347;
}

.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #bb2d3b;
    border-color: #bb2d3b;
}

.btn-warning {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background: #ffca2c;
    border-color: #ffca2c;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background: #0d6efd;
    border-color: #0d6efd;
}

.table {
    font-size: 14px;
}

.table th {
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
}

.table td {
    vertical-align: middle;
}

.badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-link {
    color: #495057;
}

.nav-link:hover {
    color: #0d6efd;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.input-group-text {
    border-radius: 6px 0 0 6px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background: #f8d7da;
    color: #842029;
}

.alert-warning {
    background: #fff3cd;
    color: #664d03;
}

.alert-info {
    background: #cfe2ff;
    color: #084298;
}

.text-primary {
    color: #0d6efd !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-success {
    color: #198754 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.bg-primary {
    background: #0d6efd !important;
}

.bg-success {
    background: #198754 !important;
}

.bg-danger {
    background: #dc3545 !important;
}

.bg-warning {
    background: #ffc107 !important;
}

.bg-info {
    background: #0dcaf0 !important;
}

.bg-dark {
    background: #1a1a2e !important;
}

.border-primary {
    border-color: #0d6efd !important;
}

.border-danger {
    border-color: #dc3545 !important;
}

.border-warning {
    border-color: #ffc107 !important;
}

.login-page .card {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-page .input-group-text {
    border-right: none;
}

.login-page .form-control {
    border-left: none;
}

.paint-card {
    cursor: pointer;
    transition: all 0.3s;
}

.paint-card.selected {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.paint-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.paint-result-box {
    padding: 8px;
    border-radius: 6px;
    color: white;
    text-align: center;
    font-size: 12px;
}

.risk-box {
    border-radius: 10px;
}

.page-break {
    page-break-before: always;
}

@media print {
    .no-print {
        display: none !important;
    }
    .sidebar {
        display: none !important;
    }
    .content-wrapper {
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }
    body {
        background: white !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    .page-break {
        page-break-before: always;
    }
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    .display-1, .display-2, .display-3, .display-4 {
        font-size: 2rem;
    }
}