:root {
    --primary: #0f766e;
    --primary-dark: #0b4f4a;
    --primary-light: #dff5f2;

    --accent: #d97706;
    --accent-light: #fff3df;

    --success: #15803d;
    --warning: #ca8a04;
    --danger: #dc2626;

    --bg-body: #f4f7f6;
    --bg-card: #ffffff;
    --bg-soft: #eef6f5;

    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-light: #94a3b8;

    --border-color: #d7e3e0;

    --shadow-sm: 0 2px 8px rgba(15, 118, 110, 0.06);
    --shadow-md: 0 10px 24px rgba(15, 118, 110, 0.10);
    --shadow-lg: 0 18px 40px rgba(15, 118, 110, 0.16);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: all 0.25s ease;

    --header-height: 68px;
    --bottom-nav-height: 74px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body.app-body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.05), transparent 25%),
        radial-gradient(circle at bottom right, rgba(217, 119, 6, 0.05), transparent 25%),
        var(--bg-body);
    color: var(--text-main);
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    padding-bottom: 100px;
    overflow-x: hidden;
}

a {
    color: inherit;
}

a:hover {
    color: var(--primary-dark);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(15, 118, 110, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.app-header-left,
.app-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
    flex: 0 0 auto;
}

.app-brand-text {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary-dark);
}

.app-user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    display: inline-block;
}

.header-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--bg-soft);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(15, 118, 110, 0.08);
    transition: var(--transition);
    flex: 0 0 auto;
}

.header-icon-btn:hover {
    background: #e5f4f1;
    color: var(--primary-dark);
}

.app-main {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 18px 14px 120px;
}

.screen-card {
    background: var(--bg-card);
    border: 1px solid rgba(15, 118, 110, 0.08);
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.screen-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.section-card {
    background: #fff;
    border: 1px solid rgba(15, 118, 110, 0.08);
    border-radius: 18px;
    padding: 14px;
    transition: var(--transition);
}

.section-card:hover {
    box-shadow: var(--shadow-sm);
}

.stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
    border: 1px solid rgba(15, 118, 110, 0.08);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(15, 118, 110, 0.20);
    transition: var(--transition);
    border: 0;
}

.action-btn:hover {
    transform: translateY(-1px);
    opacity: 0.98;
    color: #fff;
}

.secondary-btn {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    background: var(--bg-soft);
    color: var(--primary-dark) !important;
    border: 1px solid rgba(15, 118, 110, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}

.secondary-btn:hover {
    background: #e5f4f1;
    color: var(--primary-dark);
}

.notice-card {
    background: #fff;
    border: 1px solid rgba(15, 118, 110, 0.08);
    border-radius: 18px;
    padding: 14px;
    transition: var(--transition);
}

.notice-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.mobile-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.form-group-mobile {
    margin-bottom: 14px;
}

.mobile-input,
.mobile-select,
.mobile-textarea {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    padding: 12px 14px;
}

.mobile-textarea {
    min-height: 92px;
    resize: vertical;
}

.mobile-input:focus,
.mobile-select:focus,
.mobile-textarea:focus {
    border-color: rgba(15, 118, 110, 0.65);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--bottom-nav-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(15, 118, 110, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1200;
}

.bottom-nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: var(--transition);
}

.bottom-nav-item i {
    font-size: 20px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--primary);
}

.badge.text-bg-success {
    background-color: var(--success) !important;
}

.badge.text-bg-warning {
    background-color: var(--warning) !important;
    color: #fff !important;
}

.badge.text-bg-danger {
    background-color: var(--danger) !important;
}

.badge.text-bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-light {
    background-color: var(--bg-soft) !important;
}

.border {
    border-color: var(--border-color) !important;
}

.card {
    border-radius: 18px;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.list-group-item {
    border-color: rgba(15, 118, 110, 0.08);
}

.app-offcanvas {
    background: #fff;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 8px;
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-menu-link:hover {
    background: var(--bg-soft);
    color: var(--primary-dark);
}

.progress-bar-step {
    height: 8px;
    border-radius: 999px;
    background: var(--bg-soft);
    overflow: hidden;
    margin-bottom: 14px;
}

.progress-bar-step .progress-fill {
    height: 100%;
    width: 0;
    background: var(--primary);
    border-radius: 999px;
}

.spin-icon {
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    body.app-body {
        padding-bottom: 110px;
    }

    .app-main {
        padding: 14px 12px 110px;
    }

    .screen-card {
        padding: 15px;
        border-radius: 20px;
    }

    .stat-card {
        padding: 14px;
        border-radius: 18px;
    }

    .action-btn,
    .secondary-btn {
        min-height: 48px;
        border-radius: 14px;
    }

    .app-brand-text {
        font-size: 15px;
    }

    .app-user-name {
        display: none;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 0 12px;
    }

    .app-brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 18px;
    }

    .app-brand-text {
        font-size: 14px;
    }

    .header-icon-btn {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .bottom-nav-item {
        font-size: 10px;
    }

    .bottom-nav-item i {
        font-size: 18px;
    }
}