:root {
    --site-primary: #2563eb;
    --site-primary-dark: #1d4ed8;
    --site-success: #16a34a;
    --site-danger: #dc2626;
    --site-warning: #d97706;
    --site-info: #0891b2;
    --site-text: #24324a;
    --site-muted: #64748b;
    --site-border: #d8e2ef;
    --site-radius: 4px;
    --site-shadow: 0 8px 24px rgba(30, 64, 175, .1);
}

body {
    color: var(--site-text);
    background-color: #f7f9fc;
    -webkit-font-smoothing: antialiased;
}

body .container-fluid {
    padding-right: 15px !important;
    padding-left: 15px !important;
}

body .form-group {
    margin-bottom: 16px;
}

body label,
body .control-label {
    margin-bottom: 6px;
    color: #334155;
    font-weight: 600;
}

body .form-control:not([type="checkbox"]):not([type="radio"]),
body input:not([class]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
body select:not([class]),
body textarea:not([class]) {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: var(--site-radius);
    outline: 0;
    color: var(--site-text);
    background: #fff;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.45;
    transition: border-color .15s ease, box-shadow .15s ease;
}

body textarea:not([class]),
body textarea.form-control {
    min-height: 100px;
    height: auto;
    resize: vertical;
}

body select.form-control[multiple],
body select.form-control[size],
body select:not([class])[multiple],
body select:not([class])[size],
body input.form-control[type="file"],
body input:not([class])[type="file"] {
    height: auto;
}

body .form-control:not([type="checkbox"]):not([type="radio"]):focus,
body input:not([class]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
body select:not([class]):focus,
body textarea:not([class]):focus {
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}

body input[type="checkbox"],
body input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0 6px 0 0;
    vertical-align: middle;
    accent-color: var(--site-primary);
}

body .btn,
body button:not([class]),
body input[type="button"]:not([class]),
body input[type="submit"]:not([class]),
body input[type="reset"]:not([class]) {
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: var(--site-radius);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

body button:not([class]),
body input[type="button"]:not([class]),
body input[type="submit"]:not([class]) {
    color: #fff;
    border-color: var(--site-primary);
    background: var(--site-primary);
}

body .btn:hover,
body button:not([class]):hover,
body input[type="button"]:not([class]):hover,
body input[type="submit"]:not([class]):hover,
body input[type="reset"]:not([class]):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .14);
    text-decoration: none;
}

body .input-group .form-control {
    min-width: 0;
}

body .input-group-btn > .btn,
body .input-group-addon {
    min-height: 42px;
}

body .panel,
body .modal-content,
body .well {
    border: 1px solid #e3e9f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--site-shadow);
}

body .panel-heading,
body .modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid #e3e9f1;
    border-radius: 12px 12px 0 0;
    color: #172033;
    background: #f8fafc;
    font-weight: 700;
}

body .panel-body,
body .modal-body {
    padding: 18px;
}

body .modal-footer {
    padding: 12px 18px;
    border-top: 1px solid #e3e9f1;
}

body .table-responsive {
    border: 0;
    border-radius: 10px;
    box-shadow: var(--site-shadow);
}

body .table {
    margin-bottom: 0;
    color: #334155;
    background: #fff;
}

body .table > thead > tr > th {
    padding: 11px 12px;
    border-bottom: 2px solid #dbe4ef;
    color: #334155;
    background: #f1f5f9;
    font-weight: 700;
    vertical-align: middle;
}

body .table > tbody > tr > td,
body .table > tbody > tr > th {
    padding: 10px 12px;
    border-top: 1px solid #e7edf4;
    vertical-align: middle;
}

body .table > tbody > tr:hover {
    background: #f8fbff;
}

body .pagination > li > a,
body .pagination > li > span {
    margin: 0 2px;
    border: 1px solid var(--site-border);
    border-radius: 6px;
    color: var(--site-primary) !important;
    background-color: #fff;
}

body .pagination > .active > a,
body .pagination > .active > span {
    color: #fff !important;
    border-color: var(--site-primary);
    background: var(--site-primary);
}

body .text-danger,
body label.error,
body .field-validation-error {
    color: var(--site-danger);
}

body input.error,
body select.error,
body textarea.error,
body .input-validation-error {
    border-color: #ef4444;
}

@media (max-width: 767px) {
    body .container-fluid { padding-right: 10px !important; padding-left: 10px !important; }
    body .panel-body, body .modal-body { padding: 14px; }
    body .modal-footer .btn { width: 100%; margin: 4px 0; }
    body .table-responsive { overflow-x: auto; }
}
