:root {
    --bg-main: #D9E9EA;
    --bg-gradient: #C9D5DF;
    --bg-lavender: #D9D9F0;
    --card: #EAF4F3;
    --card-secondary: #D2E3E1;
    --primary: #12828F;
    --primary-dark: #08717D;
    --primary-light: #1597A2;
    --text-main: #263536;
    --text-secondary: #6F8587;
    --border: #FFFFFF;
    --accent-pink: #EF9FB1;
    --accent-purple: #9B8CE8;
    --accent-orange: #F2B05E;
    --accent-green: #76AD2F;
    --danger: #C85E75;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 12px;
    --shadow-soft: 0 12px 35px rgba(80, 120, 125, 0.10);
    --shadow-hover: 0 16px 42px rgba(80, 120, 125, 0.16);
    --font-main: 'Inter', 'Plus Jakarta Sans', 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background:
        radial-gradient(circle at 10% 20%, rgba(180, 225, 225, 0.75), transparent 35%),
        radial-gradient(circle at 90% 10%, rgba(190, 190, 235, 0.55), transparent 35%),
        linear-gradient(135deg, #d9e9ea 0%, #e5f1ef 50%, #d9d9f0 100%);
    background-attachment: fixed;
    min-height: 100vh;
    font-size: 0.925rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

::selection {
    background: rgba(18, 130, 143, 0.2);
}

:focus-visible {
    outline: 3px solid rgba(18, 130, 143, 0.35);
    outline-offset: 2px;
    border-radius: 8px;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(18, 130, 143, 0.22);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(18, 130, 143, 0.38);
    background-clip: content-box;
}

.text-app-secondary {
    color: var(--text-secondary) !important;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0.15rem 0 0;
}

.btn {
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #12828F, #1597A2);
    border: none;
    color: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 20px rgba(18, 130, 143, 0.18);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, #0e7480, #128692);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(18, 130, 143, 0.25);
    color: #ffffff;
}

.btn-primary:active {
    background: linear-gradient(135deg, #0b6a75, #11798a);
    transform: translateY(0);
    color: #ffffff;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background: linear-gradient(135deg, #9db8bc, #a8c3c6);
    border: none;
    box-shadow: none;
    transform: none;
    color: #eef4f4;
}

.btn-soft {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(80, 120, 125, 0.08);
}

.btn-soft:hover {
    background: #ffffff;
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: var(--text-secondary);
    box-shadow: 0 4px 14px rgba(80, 120, 125, 0.08);
    transition: all 0.2s ease;
}

.btn-icon:hover:not(:disabled) {
    color: var(--primary);
    background: #ffffff;
    transform: translateY(-1px);
}

.btn-icon:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control::placeholder {
    color: #9aadb0;
}

.form-control:focus,
.form-select:focus {
    border-color: #12828F;
    box-shadow: 0 0 0 4px rgba(18, 130, 143, 0.10);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
}

.form-control:disabled,
.form-select:disabled {
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-secondary);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
}

.form-text {
    color: var(--text-secondary);
}

.input-group-text {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > :not(:first-child):not(.dropdown-menu) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.table-modern {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.table-modern table {
    margin: 0;
    color: var(--text-main);
    width: 100%;
}

.table-modern thead th {
    background: rgba(18, 130, 143, 0.08);
    color: var(--primary-dark);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.table-modern tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(38, 53, 54, 0.05);
    color: var(--text-main);
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr {
    transition: background 0.2s ease;
}

.table-modern tbody tr:hover {
    background: rgba(18, 130, 143, 0.05);
}

.table-modern .table-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

.status-success,
.status-warning,
.status-danger,
.status-info,
.status-purple {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32em 0.8em;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.status-success {
    background: rgba(118, 173, 47, 0.14);
    color: #76AD2F;
}

.status-warning {
    background: rgba(242, 176, 94, 0.16);
    color: #C27A20;
}

.status-danger {
    background: rgba(239, 159, 177, 0.16);
    color: #C85E75;
}

.status-info {
    background: rgba(18, 130, 143, 0.12);
    color: #08717D;
}

.status-purple {
    background: rgba(155, 140, 232, 0.14);
    color: #7667C5;
}

.pagination {
    --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(18, 130, 143, 0.15);
}

.pagination .page-link {
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.65);
    border-radius: 10px;
    margin: 0 0.2rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: #ffffff;
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #12828F, #1597A2);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(18, 130, 143, 0.2);
}

.pagination .page-item.disabled .page-link {
    color: #9aadb0;
    background: rgba(255, 255, 255, 0.35);
}

.alert-soft {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.alert-soft.alert-danger {
    background: rgba(239, 159, 177, 0.14);
    color: #A94462;
    border-color: rgba(239, 159, 177, 0.5);
}

hr.soft-divider {
    border: 0;
    border-top: 1px solid rgba(38, 53, 54, 0.08);
    opacity: 1;
}
