/* Vuma-inspired Design System Overrides */

:root {
    --vuma-teal: #009688;
    --vuma-teal-dark: #00796b;
    --vuma-teal-deep: #009688;
    --vuma-teal-mid: #4db6ac;
    --vuma-teal-light: #f0fdfa;
    --vuma-blue: #2196f3;
    --vuma-green: #4cd964;
    --vuma-black: #1b1b1b;
    --vuma-bg: #ffffff;
    --vuma-card-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.15);
}

body {
    background-color: var(--vuma-bg);
    font-family: 'Roboto', 'Sarabun', sans-serif;
    color: #444;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--vuma-black);
}

/* Content Boxes (Vuma Style Cards) */
.card, .content-box {
    background: #fff;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    overflow: visible; /* Changed from hidden to allow outer glows */
}

.card-header {
    background-color: #fff !important;
    border-bottom: none !important;
    padding: 1.25rem !important;
}

.card-body {
    padding: 1.5rem !important;
}

/* Buttons */
.btn {
    border-radius: 0 !important; /* Square corners */
    font-weight: 700;
    padding: 1rem 1.5rem;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.btn-primary, .btn-theme, .btn-info, .btn-success, .btn-warning {
    background-color: var(--vuma-teal) !important;
    border: none !important;
    color: #fff !important;
}

.btn-primary:hover, .btn-theme:hover {
    background-color: var(--vuma-teal-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.3);
}

.btn-danger {
    background-color: #8B0000 !important; /* Dark Red */
    border: none !important;
    color: #fff !important;
}

.btn-danger:hover {
    background-color: #A52A2A !important;
}

.btn-outline-theme {
    color: var(--vuma-teal) !important;
    border: 2px solid var(--vuma-teal) !important;
    background-color: transparent !important;
}

.btn-outline-theme:hover {
    background-color: var(--vuma-teal) !important;
    color: #fff !important;
}

.absolute-fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background-color: #fff;
}

.card-body-drill {
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.drill-container-fill {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #fff;
    width: 100%;
}

.japanese-text {
    color: var(--vuma-black) !important;
}

/* Complete Button Styling */
.btn-vuma-complete {
    font-size: 1.5rem !important;
    padding: 0.8rem 1rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    width: auto !important;
    border-radius: 0 !important;
    border: none !important; /* Removed outline */
    background-color: transparent !important;
    color: var(--vuma-teal) !important;
    transition: all 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    cursor: pointer;
    box-shadow: none !important;
    text-shadow: none;
}

.btn-vuma-complete:hover {
    box-shadow: none !important;
    text-shadow: 0 0 15px var(--vuma-teal) !important;
    background-color: transparent !important;
    color: var(--vuma-teal) !important;
    transform: none !important;
}

.btn-vuma-complete i {
    font-size: 2.2rem !important;
    color: var(--vuma-teal) !important;
    transition: none !important;
}

.btn-vuma-complete.completed {
    color: var(--vuma-teal-dark) !important; /* Teal instead of Green */
    border: none !important;
}

.btn-vuma-complete.completed i {
    color: var(--vuma-teal-dark) !important;
}

.btn-vuma-complete.completed:hover {
    box-shadow: none !important;
    text-shadow: 0 0 15px var(--vuma-teal-dark) !important;
}


/* Borders & Dividers */
hr {
    display: none !important;
}

.border, .border-top, .border-bottom, .border-start, .border-end {
    border: none !important;
}

/* Navbar */
.navbar-theme {
    background-color: var(--vuma-black) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: none !important;
}

/* Sidebar Overrides */
#sidebar-wrapper {
    background-color: #fff;
    border-right: none !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.02);
}

.sidebar-heading {
    background-color: #fff !important;
    border-bottom: none !important;
}

.list-group-item {
    border-radius: 0 !important;
    margin: 0 !important;
    border: none !important;
    transition: all 0.2s;
    padding: 1.25rem 1.5rem !important; /* Slightly more padding for flush look */
}

.list-group-item.active {
    background-color: var(--vuma-teal-dark) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.list-group-item:hover:not(.active) {
    background-color: #f0f4f3;
    color: var(--vuma-teal-dark);
}

.text-theme {
    color: var(--vuma-teal-dark) !important;
}

/* Custom Nav Buttons in Top Bar */
.nav-btn-custom {
    border-radius: 10px !important;
    background-color: rgba(255,255,255,0.08) !important;
}

/* Mobile Bottom Tab Bar (Vuma Style) */
@media (max-width: 991.98px) {
    .bottom-tab-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: #fff;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 20px rgba(0,0,0,0.05);
        z-index: 1030;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #999;
        font-size: 10px;
        font-weight: 500;
    }
    
    .tab-item i {
        font-size: 1.4rem;
        margin-bottom: 2px;
    }
    
    .tab-item.active {
        color: var(--vuma-teal);
    }
    
    /* Adjust page content for bottom bar */
    body {
        padding-bottom: 80px;
    }
    
    #sidebar-wrapper {
        display: none; /* Hide sidebar on mobile in favor of bottom bar */
    }
}

/* Large Tiled Form Controls */
.form-select-tiled, .form-control-tiled {
    border: 2px solid var(--vuma-teal-dark) !important;
    border-radius: 0 !important;
    background-color: #fff !important;
    height: 60px !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--vuma-teal-dark) !important;
    padding: 0 1.5rem !important;
    box-shadow: none !important;
}
.form-select-tiled:focus, .form-control-tiled:focus {
    background-color: var(--vuma-teal-light) !important;
    border-color: var(--vuma-teal-dark) !important;
}

/* Tiled Checkboxes */
.form-check-input-tiled {
    width: 2.5rem !important;
    height: 2.5rem !important;
    border: 2px solid var(--vuma-teal-dark) !important;
    border-radius: 0 !important;
    cursor: pointer;
    background-color: #fff;
}
.form-check-input-tiled:checked {
    background-color: var(--vuma-teal-dark) !important;
    border-color: var(--vuma-teal-dark) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}
.form-check-input-tiled:focus {
    box-shadow: none !important;
    border-color: var(--vuma-teal-dark) !important;
}

/* Unified Tile-like List Items */
.tile-list-item {
    border: none !important;
    border-bottom: none !important;
    padding: 2rem 2.5rem !important; /* Massive padding */
    transition: all 0.2s ease;
    background-color: #fff !important;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    min-height: 120px; /* Taller items */
}

.tile-list-item:hover {
    background-color: var(--vuma-teal-light) !important;
    transform: translateX(10px);
    box-shadow: -10px 0 0 var(--vuma-teal) !important;
    z-index: 2;
}

.tile-list-item i {
    font-size: 4.5rem !important; /* Massive icon */
    margin-right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: transparent !important;
}

.tile-list-item .item-title {
    font-weight: 800 !important;
    font-size: 2.5rem !important; /* Doubled text size */
    color: var(--vuma-black);
    margin: 0;
    line-height: 1.1;
}

.tile-list-item .item-progress-large {
    font-size: 3rem !important; /* 3x size */
    font-weight: 900;
    color: var(--vuma-teal);
    margin-left: 1.5rem;
}

/* Glow Hover Effect for Top Tiles (Strategy Change: Background Fill) */
.tile-glow-hover {
    transition: all 0.2s ease !important;
    position: relative;
    z-index: 1;
    background-color: #fff !important;
    color: var(--vuma-teal) !important;
}

.tile-glow-hover:hover {
    background-color: var(--vuma-teal) !important;
    color: #fff !important;
    box-shadow: none !important;
    z-index: 2 !important;
}

.tile-glow-hover:hover i {
    color: #fff !important;
}

