/* =====================================================================
   MonitorLele - Dashboard Monitoring Kualitas Air Kolam Budidaya Lele
   ===================================================================== */

/* =====================================================================
   Custom Animations
   ===================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulseSoft {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fadeInDown {
    animation: fadeInDown 0.5s ease-out forwards;
    opacity: 0;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

:root {
    --color-bg: #EFF6F4;
    --color-surface: #FFFFFF;
    --color-lagoon-900: #0B3A3B;
    --color-lagoon-700: #145458;
    --color-lagoon-500: #1C7A7E;
    --color-aqua-400: #2FBFB2;
    --color-aqua-300: #6FDCCF;
    --color-silt-500: #A9825B;
    --color-ph: #7C6FDA;
    --color-suhu: #E08A3C;
    --color-turbidity: #A9825B;
    --color-tds: #2E86C1;
    --color-success: #1F9D6B;
    --color-warning: #E0A22C;
    --color-danger: #D5493F;
    --color-border: #DCE8E6;
    --color-text-muted: #5B7573;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-card: 0 2px 12px rgba(11, 58, 59, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-lagoon-900);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =====================================================================
   Layout Shell
   ===================================================================== */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* =====================================================================
   Sidebar
   ===================================================================== */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--color-lagoon-900) 0%, #0A2F30 100%);
    color: #EAF6F4;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar__brand-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(47,191,178,0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar__brand-icon {
    font-size: 28px;
}

.sidebar__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sidebar__brand-text strong {
    font-size: 14px;
    font-weight: 600;
}

.sidebar__menu-label {
    padding: 16px 20px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(234,246,244,0.5);
    font-weight: 600;
}

.sidebar__menu {
    list-style: none;
    margin: 0;
    padding: 0 12px;
    flex: 1;
}

.sidebar__menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: #CFE9E6;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.15s ease;
}

.sidebar__menu li a:hover {
    background: rgba(47,191,178,0.12);
    color: #fff;
}

.sidebar__menu li.active a {
    background: var(--color-aqua-400);
    color: #06201F;
    font-weight: 600;
}

.menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar__device-info {
    margin: 0 16px 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
}

.device-info-header {
    font-size: 12px;
    color: rgba(234,246,244,0.7);
    margin-bottom: 8px;
    font-weight: 500;
}

.device-info-body {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.device-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    animation: pulse 2s infinite;
}

.device-status-text {
    font-weight: 600;
    font-size: 14px;
}

.device-status-label {
    font-size: 12px;
    color: var(--color-success);
    font-weight: 500;
}

.sidebar__footer {
    padding: 12px 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar__logout {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #F3B9B4;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
}

.sidebar__logout:hover {
    background: rgba(213,73,63,0.15);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(31,157,107,0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(31,157,107,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(31,157,107,0);
    }
}

/* =====================================================================
   Main Content Area
   ===================================================================== */
.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* =====================================================================
   Top Bar / Header
   ===================================================================== */
.topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 28px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 5;
}

.topbar__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
}

.topbar__left {
    flex: 1;
}

.topbar__title {
    font-size: 20px;
    margin: 0 0 4px;
    font-weight: 700;
}

.topbar__subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar__time {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-lagoon-900);
}

.topbar__date {
    font-size: 13px;
    color: var(--color-text-muted);
}

.topbar__bell {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
}

.topbar__bell:hover {
    background: var(--color-bg);
}

.topbar__admin {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.admin-icon {
    font-size: 18px;
}

.admin-text {
    font-size: 13px;
    font-weight: 600;
}

/* =====================================================================
   Content Area
   ===================================================================== */
.content {
    padding: 24px 28px 32px;
}

/* =====================================================================
   Grid System
   ===================================================================== */
.grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* =====================================================================
   Cards
   ===================================================================== */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease, transform 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11,58,59,0.12);
}

.card__header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--color-border);
}

.card__header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.card__body {
    padding: 16px 18px;
}

/* =====================================================================
   Parameter Cards
   ===================================================================== */
.param-card {
    border-radius: var(--radius-lg);
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease, transform 0.3s ease;
}

.param-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 28px rgba(11,58,59,0.2);
}

.param-card:active {
    transform: translateY(-2px) scale(0.995);
}

.param-card::after {
    content: "";
    position: absolute;
    right: -25px;
    bottom: -35px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.param-card--ph {
    background: linear-gradient(135deg, var(--color-ph) 0%, #5B4EC4 100%);
}

.param-card--suhu {
    background: linear-gradient(135deg, var(--color-suhu) 0%, #C2661C 100%);
}

.param-card--turbidity {
    background: linear-gradient(135deg, var(--color-turbidity) 0%, #7C5C3D 100%);
}

.param-card--tds {
    background: linear-gradient(135deg, var(--color-tds) 0%, #1C5D8C 100%);
}

.param-card__icon {
    font-size: 32px;
    margin-bottom: 8px;
    z-index: 1;
}

.param-card__label {
    font-size: 13px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    z-index: 1;
}

.param-card__value {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    margin: 6px 0;
    z-index: 1;
}

.param-card__range {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 10px;
    z-index: 1;
}

.param-card__badge {
    display: inline-block;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.25);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
}

/* =====================================================================
   Status & Info Items
   ===================================================================== */
.status-item,
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--color-border);
}

.status-item:last-child,
.info-item:last-child {
    border-bottom: none;
}

.status-label,
.info-label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.status-value {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-display);
}

.info-value {
    font-size: 14px;
    font-weight: 600;
}

.card--info .card__body {
    position: relative;
}

.fish-icon {
    position: absolute;
    right: 18px;
    bottom: 18px;
    font-size: 48px;
    opacity: 0.2;
    animation: float 4s ease-in-out infinite;
}

/* =====================================================================
   Circular Gauge
   ===================================================================== */
.gauge-container {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
}

.gauge-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
}

.gauge {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: var(--color-border);
    stroke-width: 8;
}

.gauge-progress {
    fill: none;
    stroke: var(--color-success);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 0.5s ease, stroke 0.3s ease;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
}

.gauge-label {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.gauge-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.legend-normal {
    background: var(--color-success);
}

.legend-warning {
    background: var(--color-warning);
}

.legend-text {
    font-size: 13px;
    font-weight: 500;
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--color-aqua-400);
    color: #06201F;
}

.btn-primary:hover {
    box-shadow: 0 4px 14px rgba(47,191,178,0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-lagoon-900);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
}

.btn-success {
    background: var(--color-success);
    color: #fff;
}

.btn:focus-visible {
    outline: 3px solid var(--color-aqua-400);
    outline-offset: 2px;
}

/* =====================================================================
   Badges
   ===================================================================== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #E1F4EA;
    color: var(--color-success);
}

.badge-warning {
    background: #FCF0D9;
    color: #9A6B10;
}

.badge-danger {
    background: #FBE4E2;
    color: var(--color-danger);
}

.badge-neutral {
    background: #EDF2F1;
    color: var(--color-text-muted);
}

/* =====================================================================
   Tables
   ===================================================================== */
table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

table.data-table th {
    text-align: left;
    background: var(--color-bg);
    color: var(--color-lagoon-700);
    padding: 10px 12px;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
}

table.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
}

/* =====================================================================
   Forms
   ===================================================================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-lagoon-700);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--color-surface);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-aqua-400);
    box-shadow: 0 0 0 3px rgba(47,191,178,0.18);
}

/* =====================================================================
   Switch
   ===================================================================== */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #C9D6D4;
    border-radius: 999px;
    transition: 0.2s;
}

.switch-slider::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s;
}

.switch input:checked + .switch-slider {
    background-color: var(--color-success);
}

.switch input:checked + .switch-slider::before {
    transform: translateX(24px);
}

/* =====================================================================
   Notifications List
   ===================================================================== */
.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    background: var(--color-bg);
}

.notif-item--unread {
    background: rgba(47,191,178,0.05);
    margin: 0 -18px;
    padding: 12px 18px;
}

/* =====================================================================
   Helper Classes
   ===================================================================== */
.text-muted {
    color: var(--color-text-muted);
}

.mt-0 {
    margin-top: 0;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* =====================================================================
   Filter Bar
   ===================================================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

/* =====================================================================
   Pagination
   ===================================================================== */
.pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-lagoon-900);
    transition: all 0.15s ease;
}

.pagination button:hover {
    background: var(--color-bg);
    border-color: var(--color-aqua-400);
}

.pagination button.active {
    background: var(--color-aqua-400);
    border-color: var(--color-aqua-400);
    color: #06201F;
    font-weight: 600;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =====================================================================
   Info Box
   ===================================================================== */
.info-box {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.info-box__icon {
    font-size: 24px;
    flex-shrink: 0;
}

/* =====================================================================
   Kontrol Perangkat - New Styles
   ===================================================================== */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-buttons {
    display: inline-flex;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.toggle-buttons button {
    padding: 6px 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-lagoon-900);
    transition: all 0.15s ease;
}

.toggle-buttons button:hover {
    background: var(--color-bg);
}

.toggle-buttons button.active {
    background: var(--color-aqua-400);
    color: #06201F;
    font-weight: 600;
}

.info-box-small {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.info-box-small span {
    font-size: 18px;
}

.day-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.day-btn {
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.day-btn:hover {
    background: var(--color-bg);
}

.day-btn.active {
    background: var(--color-aqua-400);
    border-color: var(--color-aqua-400);
    color: #06201F;
    font-weight: 600;
}

.btn-danger {
    background: var(--color-danger);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 4px 14px rgba(213, 73, 63, 0.35);
}

/* =====================================================================
   Login Page
   ===================================================================== */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0A2F30 0%, #145458 25%, #1C7A7E 50%, #145458 75%, #0A2F30 100%);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    padding: 20px;
}

.login-card {
    background: var(--color-surface);
    width: 380px;
    max-width: 100%;
    padding: 34px 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    text-align: center;
}

.login-card__icon {
    font-size: 48px;
}

.login-card h1 {
    font-size: 20px;
    margin: 10px 0 4px;
}

.login-card p {
    color: var(--color-text-muted);
    font-size: 13px;
    margin-bottom: 22px;
}

.login-error {
    background: #FBE4E2;
    color: var(--color-danger);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 16px;
    text-align: left;
}

/* =====================================================================
   Responsive Design
   ===================================================================== */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        z-index: 20;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .topbar__toggle {
        display: block;
    }
    
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .gauge-container {
        flex-direction: column;
    }
    
    .topbar__right {
        gap: 12px;
    }
    
    .topbar__date {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* =====================================================================
   Custom Modal
   ===================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 58, 59, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-lagoon-900);
}

.modal-body {
    padding: 0;
    margin-bottom: 24px;
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* =====================================================================
   Loading Animation
   ===================================================================== */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 47, 48, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loader-overlay.active {
    display: flex;
    animation: fadeInLoader 0.2s ease-out;
}

@keyframes fadeInLoader {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--color-aqua-400);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring:nth-child(2) {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    border-top-color: #0DA3A8;
    animation-duration: 0.8s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-top-color: #0F6F73;
    animation-duration: 0.6s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    margin-top: 80px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
