/* ===============================
   W3.CSS THEME (FLAT BRAND GREEN)
================================= */
/* Light to Dark Scale (Converted to Emerald/Forest Green) */
.w3-theme-l5 { color: #022c22 !important; background-color: #ecfdf5 !important; }
.w3-theme-l4 { color: #022c22 !important; background-color: #d1fae5 !important; }
.w3-theme-l3 { color: #022c22 !important; background-color: #6ee7b7 !important; }
.w3-theme-l2 { color: #fff !important;    background-color: #34d399 !important; }
.w3-theme-l1 { color: #fff !important;    background-color: #10b981 !important; } /* Brand Green Light */

.w3-theme-d1 { color: #fff !important;    background-color: #059669 !important; }
.w3-theme-d2 { color: #fff !important;    background-color: #047857 !important; }
.w3-theme-d3 { color: #fff !important;    background-color: #065f46 !important; } /* Brand Green Dark */
.w3-theme-d4 { color: #fff !important;    background-color: #064e3b !important; }
.w3-theme-d5 { color: #fff !important;    background-color: var(--bg-main) !important; } /* Deepest Forest */

/* Base & Actions */
.w3-theme-light  { color: #022c22 !important; background-color: #f0fdf4 !important; }
.w3-theme-dark   { color: #fff !important;    background-color: var(--bg-main) !important; }
.w3-theme-action { color: #05140b !important; background-color: var(--brand-cyan) !important; } /* Action mapped to Cyan for contrast */

.w3-theme        { color: #05140b !important; background-color: var(--brand-green) !important; } /* Vibrant Green Base */
.w3-text-theme   { color: var(--brand-green) !important; }
.w3-border-theme { border-color: var(--brand-green) !important; }

/* Hover States */
.w3-hover-theme:hover        { color: #fff !important; background-color: #059669 !important; }
.w3-hover-text-theme:hover   { color: var(--brand-green) !important; }
.w3-hover-border-theme:hover { border-color: var(--brand-green) !important; }


/* ===============================
   CARD BORDERS (MINIMAL & FIXED)
================================= */

.card-border-d {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding-top: 15px;
    padding-bottom: 30px;
    background: var(--bg-card);
}

.card-border-r {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding-top: 15px;
    padding-bottom: 15px;
    background: var(--bg-card);
}

.card-border-c {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding-top: 5px;
    padding-bottom: 5px;
    background: var(--bg-card);
}

.card-border-x {
    border: 1px solid transparent; 
    border-radius: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.card-border-btn {
    border: 1px solid var(--border-color);
    border-radius: 8px; 
    padding-top: 6px;
    padding-bottom: 6px;
    background: var(--bg-input);
    transition: all 0.2s ease;
    cursor: pointer;
}

.card-border-btn:hover {
    border-color: var(--brand-green); /* Switched hover border to green */
    background: var(--bg-card-hover);
}


/* ===============================
   CIRCULAR BUTTONS (SMART FLEXBOX)
================================= */

.btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 12px;
    border-radius: 50%;
    
    /* Flat UI Integration */
    background: var(--bg-card-hover);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-circle:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--bg-main); /* High contrast dark text on bright green */
}

.btn-circle.btn-lg {
    width: 45px;
    height: 45px;
    font-size: 24px;
}

.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    font-size: 24px;
}

/* Use negative margins to accommodate wider button text if required */
.btn-circle span {
    margin: 0 -2rem;

    white-space: nowrap; 
}