:root {
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --accent-color: #ec4899;
    --accent-hover: #db2777;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --success-color: #10b981;
    --input-bg: rgba(15, 23, 42, 0.6);
    --input-border: rgba(255, 255, 255, 0.15);
    --input-focus: #818cf8;
}

.light-mode {
    --bg-dark: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.05);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
}

/* Background Particles */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: auto; /* allow hover interactivity */
}

/* Typography & Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #818cf8, #f472b6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Cards & Glassmorphism */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.card h2 {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.section-header h2 {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Forms & Inputs */
.input-row {
    display: flex;
    gap: 1.5rem;
}

.input-row .input-group {
    flex: 1;
}

.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

input::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

/* Input with Actions (Mic & Color) */
.input-with-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding-right: 0.25rem;
    transition: all 0.3s ease;
}
.input-with-actions:focus-within {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
    background: rgba(15, 23, 42, 0.8);
}
.input-with-actions input[type="text"] {
    border: none;
    background: transparent;
    box-shadow: none;
    flex: 1;
    padding: 0.85rem 0.5rem;
}
.input-with-actions input[type="text"]:focus {
    box-shadow: none;
    background: transparent;
}
.subject-color {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-left: 0.5rem;
    cursor: pointer;
    background: none;
    padding: 0;
}
.subject-color::-webkit-color-swatch-wrapper {
    padding: 0;
}
.subject-color::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}
.btn-mic {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
}
.btn-mic:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}
.btn-mic.listening {
    color: var(--danger-color);
    animation: pulseMic 1.5s infinite;
}
@keyframes pulseMic {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

select {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    padding: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.advanced-toggle {
    margin-top: 1.5rem;
}

/* Subject Rows */
.subjects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subject-row {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.2fr 46px;
    gap: 1rem;
    align-items: flex-end;
    background: rgba(15, 23, 42, 0.4);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: slideIn 0.4s ease-out;
    transition: border-color 0.3s ease;
}

.subject-row .input-group {
    margin-bottom: 0;
    width: 100%;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small {
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
}

.btn-large {
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

.btn-icon {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--danger-color);
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-hover);
    border-color: rgba(239, 68, 68, 0.3);
}

.actions {
    margin: 2rem 0;
}

/* Results Section */
.hidden {
    display: none !important;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.schedule-timeline {
    position: relative;
    padding-left: 24px;
    margin-top: 1.5rem;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    animation: slideInLeft 0.5s ease-out backwards;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
    z-index: 2;
}

.timeline-date {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-date i {
    color: var(--primary-color);
}

.timeline-tasks {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 1rem 0 0.5rem 0;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}
.progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Tasks & Checkmarks */
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: grab;
    transition: transform 0.2s, background 0.2s;
}

.task-item:active {
    cursor: grabbing;
}

.task-item.dragging {
    opacity: 0.4;
    background: rgba(255, 255, 255, 0.08);
}

.task-item:last-child {
    border-bottom: none;
}

.task-info-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.task-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--success-color);
}

.task-completed .task-subject {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.task-completed .task-details {
    opacity: 0.6;
}

.task-subject {
    font-weight: 500;
    font-size: 1.05rem;
}

.btn-play-timer {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s, color 0.2s;
    margin-left: 0.5rem;
}
.btn-play-timer:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Floating Timer */
.timer-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--primary-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 1000;
    width: 300px;
    animation: fadeInUp 0.4s ease forwards;
}
.timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}
.timer-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.timer-display {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}
.timer-controls {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.timer-controls .btn {
    flex: 1;
}

.task-details {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    gap: 1.5rem;
}

.task-details span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* Motivational Message */
.motivational-message {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out backwards;
}

/* Error Messages */
.error-message {
    color: var(--danger-color);
    font-size: 0.95rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================
   ROCKET LAUNCH OVERLAY
======================== */
.rocket-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(ellipse at center, #0a0f2e 0%, #000010 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: overlayFadeIn 0.4s ease forwards;
}

.rocket-overlay.hidden {
    display: none;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Stars */
.stars-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.star-dot {
    position: absolute;
    border-radius: 50%;
    background: white;
    animation: twinkle 2s infinite alternate;
}
@keyframes twinkle {
    from { opacity: 0.2; transform: scale(1); }
    to   { opacity: 1;   transform: scale(1.3); }
}

/* Launch Scene Container */
.launch-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Countdown Number */
.countdown-number {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #818cf8, #f472b6, #facc15);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(129,140,248,0.9));
    animation: numberPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    will-change: transform, opacity;
}

@keyframes numberPop {
    0%   { transform: scale(0.4) rotate(-8deg); opacity: 0; }
    70%  { transform: scale(1.15) rotate(2deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes numberFly {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(5); opacity: 0; }
}

/* Countdown Label */
.countdown-label {
    font-size: 1.2rem;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.8);
    font-weight: 600;
    animation: fadeIn 0.4s ease forwards;
}

/* Rocket */
.rocket-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
}

.rocket-ship {
    filter: drop-shadow(0 0 20px rgba(99,102,241,0.7));
    animation: rocketHover 2.5s ease-in-out infinite;
}

@keyframes rocketHover {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50%       { transform: translateY(-12px) rotate(1deg); }
}

.rocket-ship.launching {
    animation: rocketLaunch 1.2s cubic-bezier(0.2, 0, 0.8, 1) forwards;
}

@keyframes rocketLaunch {
    0%   { transform: translateY(0) scale(1); filter: drop-shadow(0 0 20px rgba(99,102,241,0.7)); }
    20%  { transform: translateY(20px) scale(0.98); }
    40%  { transform: translateY(-10px) scale(1.03); filter: drop-shadow(0 0 60px rgba(250,204,21,0.9)); }
    100% { transform: translateY(-200vh) scale(0.3); opacity: 0; }
}

/* Flames */
.flame-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2px;
    margin-top: -8px;
    height: 0;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flame-container.active {
    opacity: 1;
}

.flame {
    border-radius: 50% 50% 20% 20%;
    transform-origin: center bottom;
    animation: flicker 0.15s infinite alternate;
}

.flame-outer {
    width: 40px;
    height: 80px;
    background: linear-gradient(to top, #facc15, #f97316, transparent);
    opacity: 0.6;
    animation: flicker 0.2s infinite alternate;
}

.flame-mid {
    width: 28px;
    height: 64px;
    background: linear-gradient(to top, #fb923c, #fbbf24, transparent);
    opacity: 0.85;
    animation: flicker 0.12s infinite alternate;
    position: absolute;
    margin-top: 8px;
}

.flame-inner {
    width: 14px;
    height: 44px;
    background: linear-gradient(to top, white, #fde68a, transparent);
    opacity: 1;
    animation: flicker 0.08s infinite alternate;
    position: absolute;
    margin-top: 18px;
}

@keyframes flicker {
    0%   { transform: scaleY(1) scaleX(1) rotate(-2deg); }
    100% { transform: scaleY(1.15) scaleX(0.9) rotate(2deg); }
}

/* Blast-off ring shockwave */
.shockwave {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(250, 204, 21, 0.8);
    width: 10px;
    height: 10px;
    animation: shockExpand 0.8s ease-out forwards;
    pointer-events: none;
}

@keyframes shockExpand {
    0%   { width: 10px; height: 10px; opacity: 1; }
    100% { width: 600px; height: 600px; margin-left: -295px; margin-top: -295px; opacity: 0; border-color: rgba(99,102,241,0); }
}

/* Blastoff Label */
.blastoff-text {
    position: absolute;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.3rem;
    background: linear-gradient(90deg, #facc15, #f97316, #ec4899, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(250,204,21,0.8));
    animation: blastoffPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    top: 30%;
}

@keyframes blastoffPop {
    0%   { transform: scale(0) rotate(-5deg); opacity: 0; }
    60%  { transform: scale(1.2) rotate(1deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); }
}

/* Screen shake on launch */
@keyframes screenShake {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    10%       { transform: translate(-4px, 2px) rotate(-0.3deg); }
    20%       { transform: translate(4px, -2px) rotate(0.3deg); }
    30%       { transform: translate(-6px, 3px) rotate(-0.5deg); }
    40%       { transform: translate(6px, -3px) rotate(0.5deg); }
    50%       { transform: translate(-3px, 2px) rotate(-0.2deg); }
    60%       { transform: translate(3px, -1px) rotate(0.2deg); }
    70%       { transform: translate(-2px, 1px) rotate(-0.1deg); }
    80%       { transform: translate(2px, -1px) rotate(0.1deg); }
}

.screen-shake {
    animation: screenShake 0.6s ease-in-out forwards;
}

/* ========================
   ANIMATIONS
======================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .subject-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }
    
    .input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .remove-subject {
        width: 100%;
        margin-top: 0.5rem;
    }

    .task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .task-info-wrapper {
        align-items: flex-start;
        width: 100%;
    }

    .task-details {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        align-items: flex-start;
    }

    .timer-container {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        box-sizing: border-box;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        align-items: stretch;
    }
    
    .toast {
        width: auto;
    }
}

/* Top Actions Group */
.top-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}
.top-actions .btn-icon {
    background: var(--card-bg);
    color: var(--text-primary);
    width: 46px; 
    height: 46px;
}
.top-actions .btn-icon:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}
.light-mode .btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}
.toast {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--primary-color);
    border-left: 4px solid var(--primary-color);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease forwards;
    transition: opacity 0.3s ease;
}
.toast i {
    color: var(--primary-color);
    font-size: 1.25rem;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
