:root {
    --arthaflow-body-bg: #f7f8fa;
    --arthaflow-text-color: #212529;
    --arthaflow-card-radius: 12px;
    --arthaflow-card-radius-mobile: 8px;
    --arthaflow-card-border: #e9ecef;
    --arthaflow-focus: #0d6efd;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: var(--arthaflow-text-color);
    line-height: 1.5;
    background: var(--arthaflow-body-bg);
    min-height: 100vh;
}

main {
    min-height: 80vh;
}

.card {
    border-radius: var(--arthaflow-card-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--arthaflow-card-border);
}

.card-header {
    border-radius: var(--arthaflow-card-radius) var(--arthaflow-card-radius) 0 0;
}

.form-control:focus,
.form-floating input:focus {
    border-color: var(--arthaflow-focus);
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}

.btn {
    border-radius: 6px;
}

.alert {
    border-radius: 8px;
}

.loading-spinner-overlay {
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
}

.loading-spinner-indicator {
    width: 3rem;
    height: 3rem;
}

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    body {
        background-color: #fff;
        font-size: 12pt;
        margin: 0;
        padding: 0;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }

    .table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .table th,
    .table td {
        background-color: #fff !important;
        color: #000 !important;
    }

    a[href]:after {
        content: none !important;
    }

    .print-hide {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .card {
        border-radius: var(--arthaflow-card-radius-mobile);
    }

    .card-header {
        border-radius: var(--arthaflow-card-radius-mobile) var(--arthaflow-card-radius-mobile) 0 0;
    }

    h1,
    h3,
    h5 {
        font-size: 1.25rem;
    }
}
