/* AquaX Enterprise WebApp Design Foundation
 * - Respects OS text-scale (never overrides root html font-size)
 * - Relative rem typography & unitless line-heights for crisp desktop legibility
 * - Harmonizes legacy Bootstrap 4 table-sm / btn-sm / form-control-sm sizes
 */

:root {
    --aquax-navy: #0A3556;
    --aquax-blue: #0284C7;
    --aquax-blue-dark: #0E5A8A;
    --aquax-surface: #F3F7FB;
    --aquax-border: #DCE6F0;
    --aquax-ink: #0F172A;
    --aquax-muted: #475569;
}

body {
    line-height: 1.55;
    color: var(--aquax-ink);
    background-color: var(--aquax-surface);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--aquax-navy);
    text-wrap: balance;
    line-height: 1.25;
}

p, blockquote, .pretty-text {
    text-wrap: pretty;
}

/* Lift cramped legacy Bootstrap 4 controls inside Admin Console to Enterprise Standard */
.admin-main .breadcrumb {
    background: transparent;
    padding: 0 0 0.5rem;
    margin-block-end: 0.75rem;
    font-size: 0.9375rem;
}

.admin-main .breadcrumb a {
    color: var(--aquax-blue);
    font-weight: 600;
}

.admin-main .small,
.admin-main small {
    font-size: 0.875rem;
}

.admin-main .table {
    font-size: 0.95rem;
    background-color: #ffffff;
}

.admin-main .table thead th {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--aquax-navy);
    background-color: #eef4fa;
    padding: 0.75rem 0.9rem;
    vertical-align: middle;
}

.admin-main .table td,
.admin-main .table tbody th {
    padding: 0.72rem 0.9rem;
    vertical-align: middle;
}

.admin-main .table-sm td,
.admin-main .table-sm th {
    padding: 0.65rem 0.85rem;
}

.admin-main .form-control,
.admin-main .form-control-sm {
    font-size: 1rem;
    height: auto;
    min-block-size: 2.65rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.55rem;
    border-color: #94a3b8;
    color: var(--aquax-ink);
}

/* DataTables pagination & search input harmony */
.admin-main .dataTables_wrapper .dataTables_length,
.admin-main .dataTables_wrapper .dataTables_filter,
.admin-main .dataTables_wrapper .dataTables_info,
.admin-main .dataTables_wrapper .dataTables_paginate {
    font-size: 0.92rem;
}

.admin-main .dataTables_wrapper .dataTables_filter input,
.admin-main .dataTables_wrapper .dataTables_length select {
    font-size: 0.95rem;
    min-block-size: 2.35rem;
    height: auto;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
}

.admin-main .form-control:focus,
.admin-main .form-control-sm:focus {
    border-color: var(--aquax-blue);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.admin-main .btn {
    font-size: 0.9375rem;
    border-radius: 0.55rem;
    font-weight: 600;
}

.admin-main .btn-sm {
    font-size: 0.875rem;
    padding: 0.42rem 0.8rem;
    min-block-size: 2.35rem;
    border-radius: 0.5rem;
}

.admin-main .badge {
    font-size: 0.8125rem;
    padding: 0.34em 0.68em;
    font-weight: 700;
    border-radius: 0.45rem;
}

.admin-main .alert {
    font-size: 0.9375rem;
    border-radius: 0.7rem;
}

/* Loading spinner */
.loading-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.loading-logo {
    width: 100px;
}

.circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: absolute;
    animation: float-circle 3s infinite;
    opacity: 0.7;
}

.circle-1 { background-color: #f39c12; animation-delay: 0s; }
.circle-2 { background-color: #e74c3c; animation-delay: 0.5s; transform: translate(-60px, -60px); }
.circle-3 { background-color: #0f84f1; animation-delay: 1s; transform: translate(60px, -60px); }

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