/* ==========================================================================
   DESIGN TOKENS & SYSTEM VARIABLE DEFINITIONS - SOFT MODERN THEME
   ========================================================================== */
:root {
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Default dark operations-panel palette */
    --bg-main: #080c12;
    --bg-panel: rgba(13, 18, 27, 0.92);
    --bg-card: rgba(17, 24, 36, 0.9);
    --bg-card-hover: #151e2d;
    
    --border-glass: rgba(226, 232, 240, 0.09);
    --border-glass-focus: rgba(20, 184, 166, 0.38);

    --text-primary: #edf4ff;
    --text-secondary: #9aa8ba;
    --text-muted: #64748b;

    /* Soft Pastel Accents (SaaS/Modern Style) */
    --accent-cyan: #22d3ee;       /* Cyan */
    --accent-purple: #c084fc;     /* Lavender */
    --accent-blue: #14b8a6;       /* Teal */
    --accent-green: #34d399;      /* Soft Mint Green */
    --accent-red: #f87171;        /* Soft Rose Red */
    --accent-yellow: #fbbf24;     /* Soft Amber */

    --gradient-primary: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
    --gradient-glow: 0 4px 20px rgba(20, 184, 166, 0.14);
    
    --sidebar-width: 270px;
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

body.dark-theme {
    background-image:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.13), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.12), transparent 30rem),
        linear-gradient(180deg, #080c12 0%, #0d141f 100%);
    background-attachment: fixed;
}

body.light-theme {
    --bg-main: #f5f7fb;
    --bg-panel: rgba(255, 255, 255, 0.84);
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: #ffffff;
    --border-glass: rgba(15, 23, 42, 0.08);
    --text-primary: #172033;
    --text-secondary: #5f6f87;
    --text-muted: #8a98ad;
    background-image:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.10), transparent 30rem),
        linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    background-attachment: fixed;
}

button, input, textarea, select {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.sudoku-cell:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* ==========================================================================
   APP CONTAINER & LAYOUT
   ========================================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   SIDEBAR STYLING
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-panel);
    border-right: 1px solid var(--border-glass);
    box-shadow: 18px 0 50px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    padding: 2.25rem 1.25rem;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2.5rem;
    padding-left: 0.75rem;
}

.logo {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #051014;
    font-weight: 800;
}

.logo-text {
    color: var(--text-primary);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-green);
}

.status-dot.pulsing {
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse-green 2.5s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Sidebar Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.nav-item i {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.04);
}

.nav-item.active {
    color: var(--text-primary);
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.18);
    box-shadow: none;
}

.nav-item.active i {
    color: var(--accent-blue);
    transform: scale(1.05);
}

/* Sidebar Footer */
.sidebar-footer {
    border-top: 1px solid var(--border-glass);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.operator-info, .host-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.15rem 0.5rem;
}

.op-label, .host-label {
    color: var(--text-muted);
    font-weight: 600;
}

.op-name, .host-name {
    color: var(--text-secondary);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 2.5rem 3.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.25rem;
    border-bottom: none;
    padding-bottom: 0;
}

.header-title-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-title-container h1 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.title-separator {
    color: var(--text-muted);
    font-size: 0.9rem;
}

#page-subtitle {
    font-size: 0.95rem;
}

.system-time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
}

.system-time i {
    width: 14px;
    height: 14px;
    color: var(--accent-blue);
}

/* Content Sections */
.content-body {
    flex-grow: 1;
    position: relative;
}

.content-section {
    display: none;
    animation: fadeIn 0.35s ease;
}

.content-section.active {
    display: block;
}

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

/* ==========================================================================
   UI COMPONENTS & CARDS - SOFT MODERN
   ========================================================================== */
.card {
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.card.glass {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card:hover {
    border-color: rgba(15, 23, 42, 0.1);
    background-color: var(--bg-card-hover);
    box-shadow: 0 18px 45px -32px rgba(15, 23, 42, 0.45);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-primary);
}

.card-header h3 i {
    width: 16px;
    height: 16px;
    color: var(--accent-blue);
}

.card-body {
    padding: 1.5rem;
}

/* Flex & Grid Systems */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   DASHBOARD SCREEN SPECIFIC STYLES
   ========================================================================== */
.welcome-card {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.05) 0%, rgba(167, 139, 250, 0.03) 100%), var(--bg-card);
}

.welcome-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.welcome-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 620px;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.welcome-stats {
    display: flex;
    gap: 0.75rem;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 0.85rem;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

.stat-pill i {
    width: 14px;
    height: 14px;
    color: var(--accent-blue);
}

/* System Client Info */
.spec-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 0.5rem;
}

.spec-list li:last-child {
    border: none;
    padding: 0;
}

.spec-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.spec-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 170px;
    text-align: right;
}

/* Quick Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tool-shortcut {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tool-shortcut:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.tool-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon i {
    width: 16px;
    height: 16px;
}

/* Soft icon themes */
.downloader-theme { background: rgba(248, 113, 113, 0.08); color: var(--accent-red); }
.draw-theme { background: rgba(251, 191, 36, 0.08); color: var(--accent-yellow); }
.sudoku-theme { background: rgba(96, 165, 250, 0.08); color: var(--accent-blue); }
.it-theme { background: rgba(52, 211, 153, 0.08); color: var(--accent-green); }
.hotels-theme { background: rgba(192, 132, 252, 0.08); color: var(--accent-purple); }

.tool-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.tool-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   DOWNLOADER SCREEN SPECIFIC STYLES
   ========================================================================== */
.downloader-container {
    max-width: 760px;
    margin: 0 auto;
}

.downloader-header {
    text-align: center;
    margin-bottom: 1.75rem;
    padding: 1.25rem;
}

.downloader-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

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

.platform-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-glass);
    padding: 0 1.25rem;
    gap: 0.25rem;
    overflow-x: auto;
}

.platform-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    padding: 0.85rem 1.1rem;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.platform-tab i {
    width: 16px;
    height: 16px;
}

.platform-tab:hover {
    color: var(--text-primary);
}

.platform-tab.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.downloader-body {
    padding: 2rem;
}

.url-input-container {
    display: flex;
    position: relative;
    align-items: center;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.url-input-container:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.1);
}

.input-icon {
    position: absolute;
    left: 1.1rem;
    color: var(--text-muted);
    width: 16px;
    height: 16px;
}

.url-input-container input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 1.1rem 1rem 1.1rem 2.85rem;
    font-size: 0.85rem;
}

.url-input-container button {
    background: var(--gradient-primary);
    border: none;
    outline: none;
    color: #fff;
    font-weight: 600;
    padding: 0 1.5rem;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    align-self: stretch;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.url-input-container button:hover {
    filter: brightness(1.05);
}

/* Spinner and Results for downloader */
.cyber-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(96, 165, 250, 0.1);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 0.85rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.downloader-status-loading {
    text-align: center;
    padding: 1.75rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.downloader-result {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.25rem;
}

.media-preview-container {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.media-preview-mock {
    width: 140px;
    height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glass);
}

.preview-placeholder-icon {
    width: 28px;
    height: 28px;
    color: var(--text-muted);
}

.media-details {
    flex-grow: 1;
}

.media-details h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    line-height: 1.4;
}

.media-author {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.download-options {
    display: flex;
    gap: 0.5rem;
}

.download-format-row {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr);
    align-items: center;
    gap: 0.65rem;
    margin: 0.85rem 0;
}

.download-format-row label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-download.primary {
    background: var(--accent-green);
    color: #060913;
}
.btn-download.primary:hover {
    box-shadow: 0 4px 12px rgba(52, 211, 243, 0.15);
}

.btn-download.secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}
.btn-download.secondary:hover {
    background: rgba(255, 255, 255, 0.07);
}

.btn-download:disabled {
    cursor: wait;
    opacity: 0.7;
}

.btn-download.is-loading::after {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.info-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: rgba(96, 165, 250, 0.03);
    border: 1px solid rgba(96, 165, 250, 0.08);
    padding: 0.85rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.info-alert i {
    color: var(--accent-blue);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   RANDOM DRAW SCREEN SPECIFIC STYLES
   ========================================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.form-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-row {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.form-row .form-group {
    flex: 1;
    margin: 0;
}

textarea, input[type="text"], input[type="number"], input[type="url"], select {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.65rem 0.85rem;
    outline: none;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

textarea:focus, input[type="text"]:focus, input[type="number"]:focus, input[type="url"]:focus, select:focus {
    border-color: var(--border-glass-focus);
}

textarea.invalid,
input.invalid {
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.08);
}

textarea.code-font {
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.inline-checkbox {
    flex-direction: row !important;
    align-items: center;
    gap: 0.4rem;
}

.inline-checkbox input {
    width: 14px;
    height: 14px;
    accent-color: var(--accent-blue);
}

.btn-glow-primary {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
    transition: var(--transition-smooth);
    width: 100%;
}

.btn-glow-primary:hover {
    filter: brightness(1.05);
}

/* Raffle draw styling */
.draw-placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: 2.5rem 0;
}

.trophy-placeholder {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
    margin-bottom: 0.85rem;
    color: var(--text-muted);
}

.draw-live-counter {
    text-align: center;
}

.countdown-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 auto 0.85rem;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.1);
    animation: scale-pulse 1.2s infinite;
}

@keyframes scale-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.draw-pulse-text {
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.draw-winners-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.winner-item {
    background: rgba(52, 211, 153, 0.03);
    border: 1px solid rgba(52, 211, 153, 0.1);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.25s ease;
}

.winner-rank {
    font-size: 0.85rem;
    color: var(--accent-green);
    font-weight: 600;
}

.winner-name {
    font-size: 0.9rem;
    font-weight: 600;
}

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

/* ==========================================================================
   SUDOKU GAME SCREEN SPECIFIC STYLES
   ========================================================================== */
.sudoku-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.sudoku-board {
    display: grid;
    grid-template-columns: repeat(9, 42px);
    grid-template-rows: repeat(9, 42px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: var(--bg-main);
    overflow: hidden;
}

.sudoku-cell {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    caret-color: transparent;
    outline: none;
    user-select: none;
    transition: var(--transition-smooth);
}

/* Thick quadrant boundaries */
.sudoku-cell:nth-child(3n) {
    border-right: 2px solid rgba(255, 255, 255, 0.25);
}
.sudoku-cell:nth-child(9n) {
    border-right: none;
}
.sudoku-cell:nth-child(n+19):nth-child(-n+27),
.sudoku-cell:nth-child(n+46):nth-child(-n+54) {
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}

.sudoku-cell.initial {
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.015);
}

.sudoku-cell:focus, .sudoku-cell.selected {
    background-color: rgba(96, 165, 250, 0.12);
}

.sudoku-cell.invalid {
    background-color: rgba(248, 113, 113, 0.12) !important;
    color: var(--accent-red) !important;
}

/* Sudoku controls and statistics */
.sudoku-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.85rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-lbl {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

#sudoku-timer {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-blue);
}

.sudoku-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.sudoku-actions button {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: center;
    padding: 0.55rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary-outline {
    background: none;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-secondary);
}
.btn-primary-outline:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.btn-success {
    background: var(--accent-green);
    color: #060913;
}
.btn-success:hover {
    filter: brightness(1.05);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.15) !important;
    color: var(--accent-red);
}
.btn-danger:hover {
    background: rgba(248, 113, 113, 0.15);
}

.sudoku-num-pad {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    width: min(100%, 432px);
    margin-top: 1.25rem;
}

.numpad-btn {
    height: 46px; /* larger for easier tapping */
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.045);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.15rem; /* larger font for mobile visibility */
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.numpad-btn:hover, .numpad-btn:active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
}

.erase-btn {
    grid-column: span 2;
    background: rgba(248, 113, 113, 0.08);
    color: var(--accent-red);
    border-color: rgba(248, 113, 113, 0.15);
}
.erase-btn:hover, .erase-btn:active {
    background: rgba(248, 113, 113, 0.15);
    border-color: var(--accent-red);
}

.sudoku-info-box {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.65rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sudoku-info-box i {
    width: 12px;
    height: 12px;
    vertical-align: middle;
}

/* ==========================================================================
   IT UTILITIES SCREEN SPECIFIC STYLES
   ========================================================================== */
.password-display-container {
    display: flex;
    position: relative;
    align-items: center;
    border: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.password-display-container input {
    border: none;
    background: none;
    width: 100%;
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.65rem 2.5rem 0.65rem 0.85rem;
}

.icon-btn {
    position: absolute;
    right: 0.4rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.icon-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.icon-btn i {
    width: 14px;
    height: 14px;
}

.custom-slider {
    width: 100%;
    accent-color: var(--accent-blue);
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    margin: 0.4rem 0;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

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

.custom-checkbox input {
    accent-color: var(--accent-blue);
    width: 14px;
    height: 14px;
}

.margin-top {
    margin-top: 1.1rem;
}

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
}
.btn-primary:hover {
    filter: brightness(1.05);
}

.action-row {
    display: flex;
    gap: 0.4rem;
}

.action-row button {
    flex: 1;
    padding: 0.55rem;
    border-radius: 8px;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.btn-danger-outline {
    background: none;
    border: 1px solid rgba(248, 113, 113, 0.15) !important;
    color: var(--accent-red);
}
.btn-danger-outline:hover {
    background: rgba(248, 113, 113, 0.05);
}

.text-link {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.text-link:hover {
    text-decoration: underline;
}

/* Background blob effects - softer and larger blur */
.cyber-grid-overlay {
    display: none; /* Removed grid for softer look */
}

.neon-glow-blob {
    display: none;
}

/* Utility Helpers */
.hidden {
    display: none !important;
}

.text-muted {
    color: var(--text-muted);
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   MODERN SOFT APP REFRESH
   ========================================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 38px;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.header-chip:hover {
    border-color: rgba(20, 184, 166, 0.25);
    box-shadow: 0 14px 28px -22px rgba(15, 23, 42, 0.45);
}

.header-chip i {
    width: 16px;
    height: 16px;
    color: var(--accent-blue);
}

.system-time {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.dashboard-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    gap: 1.25rem;
}

.dashboard-tools {
    grid-column: 1 / -1;
}

.welcome-card {
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(37, 99, 235, 0.08)),
        var(--bg-card);
}

.welcome-card h2 {
    font-size: 2rem;
    letter-spacing: 0;
}

.stat-pill {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--text-secondary);
}

.tools-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-shortcut {
    min-height: 132px;
    background: rgba(255, 255, 255, 0.035);
}

.tool-shortcut:hover {
    background: rgba(255, 255, 255, 0.065);
    box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.38);
}

.downloader-container,
.sudoku-layout {
    max-width: 1080px;
}

.downloader-container {
    margin: 0;
}

textarea,
input[type="text"],
input[type="number"],
input[type="url"],
select,
.password-display-container {
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-primary);
}

textarea::placeholder,
input::placeholder {
    color: var(--text-muted);
}

.url-input-container,
.downloader-result,
.info-alert,
.sudoku-info-box,
.tool-result-box {
    background: rgba(255, 255, 255, 0.045);
}

.draw-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 1.25rem;
}

.segmented-control {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.35rem;
    margin-bottom: 1rem;
}

.segmented-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 38px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.segmented-btn.active {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    box-shadow: 0 8px 20px -16px rgba(15, 23, 42, 0.5);
}

.segmented-btn i {
    width: 16px;
    height: 16px;
}

.info-alert.compact {
    margin-top: 0;
    margin-bottom: 1rem;
}

.pair-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.pair-arrow {
    color: var(--text-muted);
    font-weight: 700;
}

.sudoku-layout {
    grid-template-columns: minmax(360px, 0.85fr) minmax(320px, 0.65fr);
    margin: 0;
}

.sudoku-board-card .card-body {
    padding: 1rem;
}

.sudoku-board {
    grid-template-columns: repeat(9, minmax(34px, 48px));
    grid-template-rows: repeat(9, minmax(34px, 48px));
    width: min(100%, 432px);
    aspect-ratio: 1;
    border-color: rgba(226, 232, 240, 0.22);
    background: rgba(255, 255, 255, 0.045);
}

.sudoku-cell {
    width: 100%;
    height: 100%;
    color: var(--text-primary);
    border-color: rgba(226, 232, 240, 0.08);
}

.sudoku-cell:nth-child(3n) {
    border-right-color: rgba(226, 232, 240, 0.24);
}

.sudoku-cell:nth-child(n+19):nth-child(-n+27),
.sudoku-cell:nth-child(n+46):nth-child(-n+54) {
    border-bottom-color: rgba(226, 232, 240, 0.24);
}

.sudoku-cell.initial {
    color: #5eead4;
    background-color: rgba(20, 184, 166, 0.10);
}

.sudoku-cell.related {
    background-color: rgba(37, 99, 235, 0.13);
}

.sudoku-cell.same-number {
    background-color: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.sudoku-cell.selected {
    background-color: rgba(37, 99, 235, 0.24);
    box-shadow: inset 0 0 0 2px #2563eb;
}

.sudoku-progress {
    margin-bottom: 1.25rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
}

.progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.24);
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.2s ease;
}

.it-tools-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.it-tools-layout .span-2 {
    grid-column: span 2;
}

.full-width {
    width: 100%;
}

.tool-result-box {
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    min-height: 82px;
    padding: 0.85rem;
    word-break: break-word;
}

body.light-theme .tool-shortcut,
body.light-theme textarea,
body.light-theme input[type="text"],
body.light-theme input[type="number"],
body.light-theme input[type="url"],
body.light-theme select,
body.light-theme .password-display-container,
body.light-theme .url-input-container,
body.light-theme .downloader-result,
body.light-theme .info-alert,
body.light-theme .sudoku-info-box,
body.light-theme .tool-result-box {
    background: #f8fafc;
}

body.light-theme .tool-shortcut:hover,
body.light-theme .segmented-btn.active {
    background: #ffffff;
}

body.light-theme .segmented-control {
    background: #eef3f8;
}

body.light-theme .sudoku-board {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.28);
}

body.light-theme .sudoku-cell {
    border-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .sudoku-cell:nth-child(3n) {
    border-right-color: rgba(15, 23, 42, 0.28);
}

body.light-theme .sudoku-cell:nth-child(n+19):nth-child(-n+27),
body.light-theme .sudoku-cell:nth-child(n+46):nth-child(-n+54) {
    border-bottom-color: rgba(15, 23, 42, 0.28);
}

body.light-theme .sudoku-cell.initial {
    color: #0f766e;
    background-color: #f1f8f6;
}

body.light-theme .sudoku-cell.related {
    background-color: #eef6ff;
}

body.light-theme .sudoku-cell.same-number {
    background-color: #dcfce7;
    color: #166534;
}

body.light-theme .sudoku-cell.selected {
    background-color: #dbeafe;
}

body.light-theme .progress-track {
    background: #e2e8f0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .sidebar {
        width: 70px;
        padding: 2rem 0.4rem;
    }
    .sidebar-header .status-indicator,
    .sidebar-header .logo .logo-text,
    .sidebar-nav span,
    .sidebar-footer {
        display: none;
    }
    .logo {
        justify-content: center;
        font-size: 1.5rem;
    }
    .main-content {
        margin-left: 70px;
        padding: 2rem;
    }
    .grid-layout {
        grid-template-columns: 1fr 1fr;
    }
    .span-3, .span-2 {
        grid-column: span 2;
    }
    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }
    .sudoku-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-shell,
    .draw-layout,
    .it-tools-layout {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-tools,
    .it-tools-layout .span-2 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .sidebar-header {
        margin-bottom: 0;
    }
    .sidebar-nav {
        flex-direction: row;
        margin-left: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }
    .nav-item {
        padding: 0.55rem;
        min-width: 40px;
        justify-content: center;
    }
    .main-content {
        margin-left: 0;
        padding: 1.5rem 1rem;
    }
    .grid-layout {
        grid-template-columns: 1fr;
    }
    .span-3, .span-2 {
        grid-column: span 1;
    }
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .action-row {
        flex-direction: column;
    }
    .platform-tabs {
        padding: 0;
    }
    .media-preview-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .media-preview-mock {
        width: 100%;
        height: 160px;
    }
    .url-input-container {
        flex-direction: column;
        align-items: stretch;
    }
    .input-icon {
        top: 1.1rem;
    }
    .url-input-container button {
        min-height: 44px;
        justify-content: center;
    }
    .download-options {
        flex-direction: column;
    }
    .content-header {
        align-items: flex-start;
        gap: 0.75rem;
        flex-direction: column;
    }
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .dashboard-shell,
    .draw-layout,
    .it-tools-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-tools,
    .it-tools-layout .span-2 {
        grid-column: span 1;
    }
    .segmented-control {
        grid-template-columns: 1fr;
    }
    .sudoku-board {
        width: min(100%, 92vw);
    }
}

/* ==========================================================================
   INSTAGRAM STORIES/HIGHLIGHTS GRID STYLES
   ========================================================================== */
.stories-grid-container {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.5rem;
}

.stories-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.85rem;
}

.stories-grid-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stories-grid-header h3 i {
    color: var(--accent-purple);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.story-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.story-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.08);
}

.story-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    background: #000;
    overflow: hidden;
}

.story-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.story-card:hover .story-preview img {
    transform: scale(1.05);
}

.story-badge {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.story-badge.video {
    color: var(--accent-cyan);
}

.story-badge.image {
    color: var(--accent-green);
}

.story-badge i {
    width: 10px;
    height: 10px;
}

.btn-story-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: auto;
}

.btn-story-download:hover {
    filter: brightness(1.1);
}

.btn-download.compact {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
}

body.light-theme .stories-grid-container {
    background: #f8fafc;
}

body.light-theme .story-card {
    background: #ffffff;
}

/* ==========================================================================
   HOTELS SCREEN SPECIFIC STYLES
   ========================================================================== */
.hotels-container {
    width: 100%;
    height: calc(100vh - 170px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
}

.hotels-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

@media (max-width: 1024px) {
    .hotels-container {
        height: calc(100vh - 140px);
    }
}

/* ==========================================================================
   CANLI FINANS SCREEN SPECIFIC STYLES
   ========================================================================== */
.finance-theme {
    background: rgba(52, 211, 153, 0.08);
    color: var(--accent-green);
}

.qr-theme {
    background: rgba(34, 211, 238, 0.08);
    color: var(--accent-cyan);
}

.btn-refresh-mini {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-refresh-mini:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-refresh-mini.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.finance-table {
    width: 100%;
    border-collapse: collapse;
}

.finance-table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.finance-table td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    vertical-align: middle;
}

.finance-table tr:last-child td {
    border-bottom: none;
}

.currency-cell {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.curr-code {
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.curr-name {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rate-up {
    color: var(--accent-green) !important;
}

.rate-down {
    color: var(--accent-red) !important;
}

.rate-neutral {
    color: var(--text-muted) !important;
}

/* Light theme support */
body.light-theme .finance-table th {
    color: var(--text-muted);
}

body.light-theme .finance-table tr:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

/* ==========================================================================
   QR GENERATOR SCREEN SPECIFIC STYLES
   ========================================================================== */
.qr-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
}

.qr-tabs-bar {
    display: flex;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.01);
    overflow-x: auto;
}

.qr-tab-btn {
    flex: 1;
    padding: 0.85rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.qr-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.qr-tab-btn.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.03);
}

.predefined-logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.predefined-logo {
    padding: 0.5rem;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.predefined-logo:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.predefined-logo.active {
    border-color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.06);
    color: var(--accent-cyan);
}

.qr-preview-wrapper {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.20);
    max-width: 100%;
}

.qr-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.color-picker-wrapper input[type="color"] {
    width: 50px;
    height: 38px;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    background: none;
    cursor: pointer;
    padding: 0;
}

body.light-theme .qr-tabs-bar {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .qr-tab-btn.active {
    background: rgba(34, 211, 238, 0.06);
}

body.light-theme .qr-preview-wrapper {
    background: #f1f5f9;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

/* QR Collection Grid & History Cards */
.qr-history-item {
    transition: var(--transition-smooth);
}

.qr-history-item:hover {
    background-color: var(--bg-card-hover) !important;
    border-color: rgba(34, 211, 238, 0.25) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -12px rgba(34, 211, 238, 0.18);
}

.btn-load-history {
    transition: var(--transition-smooth);
}
.btn-load-history:hover {
    background: rgba(20, 184, 166, 0.18) !important;
    border-color: rgba(20, 184, 166, 0.3) !important;
    color: var(--text-primary) !important;
}

.btn-download-history {
    transition: var(--transition-smooth);
}
.btn-download-history:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--text-primary) !important;
}

.btn-delete-history {
    transition: var(--transition-smooth);
}
.btn-delete-history:hover {
    background: rgba(248, 113, 113, 0.18) !important;
    border-color: rgba(248, 113, 113, 0.3) !important;
    color: #ffffff !important;
}

body.light-theme .qr-history-item:hover {
    background-color: #ffffff !important;
    border-color: rgba(34, 211, 238, 0.35) !important;
    box-shadow: 0 10px 25px -12px rgba(0, 0, 0, 0.08);
}

body.light-theme .btn-download-history:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS FOR NEW MODULES
   ========================================================================== */
@media (max-width: 1200px) {
    .finance-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .finance-grid .finance-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .qr-layout {
        grid-template-columns: 1fr !important;
    }
    .qr-preview-card {
        order: -1; /* Put preview card on top on mobile/tablet */
    }
}

@media (max-width: 768px) {
    .finance-grid {
        grid-template-columns: 1fr !important;
    }
    .finance-grid .finance-card:last-child {
        grid-column: span 1;
    }
    .calc-form-row {
        flex-direction: column;
        align-items: stretch !important;
    }
    .calc-form-row .flex-center {
        transform: rotate(90deg);
        padding: 0.5rem 0 !important;
    }
    .predefined-logos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ==========================================================================
   KANBAN BOARD SCREEN SPECIFIC STYLES
   ========================================================================== */
.kanban-theme {
    background: rgba(168, 85, 247, 0.08) !important;
    color: #a855f7 !important;
}

.kanban-column.drag-over {
    border-color: var(--accent-blue) !important;
    background: rgba(37, 99, 235, 0.03) !important;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.1);
}

@keyframes kanbanCardEntry {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kanban-card {
    animation: kanbanCardEntry 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), 
                box-shadow 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), 
                border-color 0.2s ease, 
                background-color 0.2s ease !important;
}

.kanban-card:hover {
    transform: translateY(-3px) scale(1.015) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(20, 184, 166, 0.3) !important;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45) !important;
}

body.light-theme .kanban-card:hover {
    background: #ffffff !important;
    border-color: rgba(20, 184, 166, 0.4) !important;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.08) !important;
}

.kanban-card.dragging {
    opacity: 0.4;
    cursor: grabbing;
    transform: scale(0.98);
}

/* Priority tags and borders */
.kanban-card.priority-low {
    border-left: 3.5px solid var(--accent-green) !important;
}
.kanban-card.priority-medium {
    border-left: 3.5px solid #f59e0b !important;
}
.kanban-card.priority-high {
    border-left: 3.5px solid var(--accent-red) !important;
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.05);
}

/* Badges styling */
.priority-badge-low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}
.priority-badge-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}
.priority-badge-high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.category-personal {
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent-cyan) !important;
    border: 1px solid rgba(34, 211, 238, 0.2) !important;
}
.category-work {
    background: rgba(96, 165, 250, 0.1);
    color: var(--accent-blue) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
}
.category-other {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-glass) !important;
}

/* Modals styles */
.modal-overlay.hidden {
    display: none !important;
}

/* Responsive horizontal scrolling columns on tablet and mobile */
@media (max-width: 992px) {
    .kanban-board-wrapper {
        grid-template-columns: repeat(3, minmax(280px, 1fr)) !important;
        overflow-x: auto;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
    }
    .kanban-column {
        scroll-snap-align: start;
        min-height: 450px !important;
    }
}

