* {
    box-sizing: border-box;
}

:root {
    --app-primary: #2563eb;
    --app-primary-dark: #1d4ed8;
    --app-accent: #14b8a6;
    --app-bg: #f6f8fb;
    --app-surface: #ffffff;
    --app-surface-soft: #eef6ff;
    --app-text: #162033;
    --app-muted: #64748b;
    --app-border: #dbe4f0;
    --app-shadow: 0 16px 45px rgba(22, 32, 51, 0.08);
    --app-radius: 8px;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--app-text);
    background: var(--app-bg);
    background-attachment: fixed;
    font-family: "Raleway", "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    color: var(--app-primary);
    text-decoration: none;
}

a:hover {
    color: var(--app-primary-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.logo {
    width: 150px;
    height: auto;
}

.marine,
.dark {
    color: var(--app-text) !important;
}

.center {
    text-align: center;
}

.inline {
    display: inline;
}

.margin_top,
.marginTop {
    margin-top: 1.25rem;
}

.bg-white2,
.card,
.card-modern,
.modal-content,
.dropdown-menu {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid var(--app-border) !important;
    border-radius: var(--app-radius) !important;
    box-shadow: var(--app-shadow) !important;
}

.card,
.card-modern {
    overflow: hidden;
}

.card-header,
.card-header-modern {
    border: 0 !important;
    background: #fff !important;
    color: var(--app-text) !important;
    font-weight: 700;
}

.btn {
    border-radius: var(--app-radius) !important;
    font-weight: 700;
    letter-spacing: 0;
}

.btn-primary,
.btn-dark {
    background: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
    color: #fff !important;
    box-shadow: none;
}

.btn-primary:hover,
.btn-dark:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.btn-outline-dark,
.btn-outline-danger {
    border-color: var(--app-border) !important;
    color: var(--app-text) !important;
    background: #fff !important;
}

.btn-outline-dark:hover,
.btn-outline-danger:hover {
    border-color: var(--app-primary) !important;
    background: var(--app-primary) !important;
    color: #fff !important;
}

.form-control,
input,
select,
textarea {
    border: 1px solid var(--app-border) !important;
    border-radius: var(--app-radius) !important;
    color: var(--app-text);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--app-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14) !important;
    outline: none;
}

hr {
    width: 100%;
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid var(--app-border);
}

.navbar-modern {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid var(--app-border);
    box-shadow: 0 10px 30px rgba(22, 32, 51, 0.08) !important;
    backdrop-filter: blur(14px);
}

.navbar-brand-modern,
.navbar-modern .text-white,
.sidebar-toggle {
    color: var(--app-text) !important;
}

.sidebar-modern {
    background: rgba(255, 255, 255, 0.92) !important;
    border-right: 1px solid var(--app-border) !important;
    box-shadow: 10px 0 35px rgba(22, 32, 51, 0.04);
    backdrop-filter: blur(14px);
}

.sidebar-header {
    background: transparent !important;
    border-bottom: 1px solid var(--app-border) !important;
}

.sidebar-divider {
    height: 1px;
    margin: 0.75rem 1rem;
    background: var(--app-border) !important;
}

.nav-link-modern {
    margin: 0.2rem 0.75rem !important;
    padding: 0.85rem 1rem !important;
    border: 0 !important;
    border-radius: var(--app-radius);
    color: var(--app-muted) !important;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    color: var(--app-primary-dark) !important;
    background: var(--app-surface-soft) !important;
}

.main-content {
    padding: 2rem !important;
}

.empty-state {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--app-muted);
}

.empty-state i {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--app-surface-soft);
    color: var(--app-primary);
    font-size: 1.35rem;
}

.empty-state h3 {
    margin: 0;
    color: var(--app-text);
    font-size: 1.15rem;
    font-weight: 800;
}

.empty-state p {
    max-width: 32rem;
    margin: 0;
}

.empty-state.error i {
    background: #fff1f2;
    color: #e11d48;
}

@media only screen and (max-width: 768px) {
    .main-content {
        padding: 1rem !important;
    }

    .logo {
        width: 118px;
    }
}
