
/* =========================
   CARDS / GLASS UI
========================= */

.card,
.sidebar,
.learn-jargon,
.topbar {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    border-radius: 20px;
}

/* ===============================
   DROPDOWN
=============================== */

.dropdown{
    position:relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;

    min-width: 190px;

    /* GLASS LOOK (same as cards) */
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;

    box-shadow: 0 10px 40px rgba(0,0,0,.25);

    display: none;
    overflow: hidden; /* important for clean edges */

    z-index: 9999999;
}
.dropdown-menu::before {
    content: "";
    position: absolute;
    inset: 0;

    opacity: 0.04;
    pointer-events: none;

    background-image: url('../images/noise.png');
    background-repeat: repeat;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;

    color: var(--text-primary);
    font-size: 13px;

    text-decoration: none;

    position: relative;
    z-index: 1; /* above noise layer */
}

.dropdown-menu a:hover {
    background: rgba(56,189,248,0.12);
}
/* ===============================
   DARK MODE TOGGLE
=============================== */

.theme-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 16px;
    gap: 10px;
    color: #fff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    flex-shrink: 0;
}
.switch input{
    opacity:0;
    width:0;
    height:0;
}

.slider{
    position:absolute;
    inset:0;

    cursor:pointer;

    background:#64748b;

    border-radius:999px;

    transition:.3s;
}

.slider::before{
    content:"";

    position:absolute;

    height:16px;
    width:16px;

    left:3px;
    top:3px;

    background:white;

    border-radius:50%;

    transition:.3s;
}

.switch input:checked + .slider{
    background:#2563eb;
}

.switch input:checked + .slider::before{
    transform:translateX(20px);
}
/* =========================
   DASHBOARD LAYOUT
   ========================= */

.dashboard-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    padding: 20px;
}

.dashboard-sidebar {
    flex: 0 0 280px; /* fixed left */
}

.dashboard-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex: 1; /* takes remaining space */
    min-width: 0;
}

.dashboard-content .learn-jargon {
    flex: 1;
    max-width: 100%;
}
.dashboard-content.has-results #results {
    flex: 1;
    min-width: 0;
}
.dashboard-content.has-results .learn-jargon {
    flex: 0 0 30%;
    max-width: 30%;
}

.learn-jargon {
    width: 320px;   /* right panel size */
    flex-shrink: 0;
    margin-top: 0;
}
#results,
.learn-jargon {
    transition: all 0.3s ease;
}


/* =========================
   SIDEBAR CARDS
   ========================= */

.dashboard-card {

}
.sidebar-panel #domainForm {
    margin-bottom: 70px;
}

.form-card{
    margin-bottom:38px;
}

.time-card{
    margin-bottom:15px;
}

.mini-card {
    display: flex;
    flex-direction: column;
    gap: 16px;

    margin-top: 24px;
    padding: 30px;
    border-radius: 20px;

    /* iOS GLASS STYLE */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);

    position: relative;
    overflow: hidden;
}
.mini-card::before {
    content: "";
    position: absolute;
    inset: 0;

    opacity: 0.04;
    pointer-events: none;

    background-image: url("../images/noise.png");
}
.mini-card > * {
    position: relative;
    z-index: 1;
}

/* =========================
   DONATE BUTTON
========================= */
.donate-btn {
    width: 100%;
    padding: 14px 16px;

    border: none;
    border-radius: 16px;

    background: linear-gradient(135deg, #22c55e, #16a34a);

    color: #fff;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.25s ease;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.35);
}

.donate-btn:active {
    transform: scale(0.98);
}




.learn-jargon{
    margin-top: 30px;
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--bg-card);
    color: var(--text-primary);
}

.learn-jargon-header{
    margin-bottom: 25px;
}

.learn-jargon-header h1{
    margin: 0;
    font-size: 2rem;
    color: var(--text-primary);
}

.learn-jargon-header p{
    margin-top: 10px;
    color: var(--text-secondary);
}

/* ==================================
   DONATION MODAL
================================== */

.donate-modal{
    display:none;

    position:fixed;
    inset:0;

    z-index:99999;

    justify-content:center;
    align-items:center;

    background:rgba(0,0,0,.65);
    backdrop-filter:blur(18px);
}

.donate-content{
    width:90%;
    max-width:520px;

    padding:30px;

    border-radius:28px;

    background:rgba(20,25,40,.78);

    backdrop-filter:blur(30px);
    -webkit-backdrop-filter:blur(30px);

    border:1px solid rgba(255,255,255,.08);

    box-shadow:
        0 30px 80px rgba(0,0,0,.45);

    position:relative;
}

.donate-close{
    position:absolute;
    top:14px;
    right:16px;

    background:none;
    border:none;

    color:white;
    font-size:24px;

    cursor:pointer;
}

.donate-content h2{
    text-align:center;
    margin-bottom:12px;
}

.donate-message{
    text-align:center;
    opacity:.8;
    line-height:1.6;
    margin-bottom:25px;
}

.donate-tabs{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.donate-tab{
    flex:1;
    height:42px;

    border:none;
    border-radius:12px;

    cursor:pointer;

    background:rgba(255,255,255,.06);
    color:white;
}

.donate-tab.active{
    background:#38bdf8;
    color:#000;
}

.donate-body{
    display:flex;
    gap:20px;
    align-items:center;
}

.donate-qr{
    width:180px;
    height:180px;

    border-radius:18px;
    object-fit:cover;
}

.donate-details{
    flex:1;
}

.donate-details h3{
    margin-bottom:10px;
}

.donate-copy-btn{
    margin-top:15px;
    width:100%;
}

.donate-footer{
    margin-top:25px;
    text-align:center;
    opacity:.8;
    line-height:1.7;
}