/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #080710;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(59, 130, 246, 0.4);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --accent-color: #3b82f6;
    --font-sans: 'Inter', 'Noto Sans KR', sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Blobs */
.background-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.22;
    animation: floatBlob 25s infinite ease-in-out alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #3b82f6;
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: #8b5cf6;
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
    animation-duration: 30s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #ec4899;
    top: 40%;
    left: 30%;
    opacity: 0.12;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 80px) scale(1.15); }
}

/* Layout Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-right-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text {
    color: var(--text-primary);
}

.logo-text .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-tag {
    font-size: 0.85rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-section h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #93c5fd, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Glass Card */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.card:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 12px 40px 0 rgba(59, 130, 246, 0.15);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
}

.card-title span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: var(--accent-color);
}

/* Upload Section */
.upload-section {
    margin-bottom: 2rem;
}

.dropzones-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .dropzones-container {
        grid-template-columns: 1fr;
    }
}

.dropzone-box {
    background: rgba(255, 255, 255, 0.01);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
}

.dropzone-box:hover, .dropzone-box.dragover {
    border-color: var(--accent-color);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.channel-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.channel-icon.purple { background: rgba(139, 92, 246, 0.1); color: #a78bfa; }
.channel-icon.blue { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }
.channel-icon.emerald { background: rgba(16, 185, 129, 0.1); color: #34d399; }

.dropzone-box h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.dropzone-box .desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.status-lbl {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    color: var(--text-secondary);
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropzone-box.loaded {
    border-style: solid;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.03);
}

.dropzone-box.loaded .status-lbl {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-weight: 500;
}

/* Console Grid */
.console-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .console-grid {
        grid-template-columns: 1fr;
    }
}

.console-card {
    display: flex;
    flex-direction: column;
}

.small-clear-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.small-clear-btn:hover {
    color: #ef4444;
}

/* Terminal style log console */
.terminal-log {
    background: #040307;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.78rem;
    color: #b3c2db;
    overflow-y: auto;
    max-height: 250px;
    flex: 1;
    min-height: 200px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}

.terminal-log::-webkit-scrollbar { width: 6px; }
.terminal-log::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }

.log-line {
    margin-bottom: 0.35rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-line.system { color: #818cf8; }
.log-line.info { color: #9ca3af; }
.log-line.success { color: #34d399; }
.log-line.warn { color: #fbbf24; }
.log-line.err { color: #f87171; }

/* Status Checklist Card */
.check-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.checklist-grid {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-bottom: 1.5rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.status-icon {
    font-size: 1.25rem;
}

.status-icon.err { color: #ef4444; }
.status-icon.success { color: #10b981; }
.status-icon.warn { color: #f59e0b; }

.check-text h4 {
    font-size: 0.88rem;
    font-weight: 600;
}

.check-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Button & Actions */
.btn {
    width: 100%;
    padding: 0.85rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.demo-btn {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    border-radius: 100px;
    width: auto;
}

/* Result Card & Tab Layout */
.result-card {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.6rem 1.15rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.download-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-download {
    background: var(--success-gradient);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
    transition: all 0.2s;
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.35);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Data Table Grid */
.table-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    max-height: 450px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.data-table th {
    background: rgba(16, 20, 40, 0.95);
    color: #93c5fd;
    font-weight: 600;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    white-space: nowrap;
    z-index: 10;
}

.data-table td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    white-space: nowrap;
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.table-container::-webkit-scrollbar { width: 8px; height: 8px; }
.table-container::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
.table-container::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 10px; }
.table-container::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

/* Index Editor Styles */
.editor-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.editor-header-bar h3 {
    font-size: 1rem;
    font-weight: 600;
}

.add-row-btn {
    width: auto;
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    border-radius: 8px;
}

.editor-table input[type="text"] {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    width: 100%;
    outline: none;
    font-size: 0.8rem;
}

.editor-table input[type="text"]:focus {
    border-color: var(--accent-color);
}

.editor-table td {
    padding: 0.5rem 0.75rem;
}

.small-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}

.small-btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.small-btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

.editor-footer-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Badges / Placeholders */
.badge {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-status-ok {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
}

.empty-cell-placeholder {
    color: rgba(255, 255, 255, 0.15);
    font-style: italic;
    font-size: 0.78rem;
}

/* Main Mode Tabs */
.tabs-container#mainTabsContainer {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
}

.tabs-container#mainTabsContainer .tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
}

.tabs-container#mainTabsContainer .tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.tabs-container#mainTabsContainer .tab-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.main-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.main-tab-pane.active {
    display: block;
}

/* Date Control Card */
.date-control-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(20px);
}

.period-type-selector {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 4px;
    margin-top: 0.8rem;
    margin-bottom: 0.5rem;
}

.period-type-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.period-type-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.period-type-btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(168, 85, 247, 0.35));
    color: #ffffff;
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.date-selection-grid {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.date-input-group {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.date-input-group select {
    background: rgba(13, 12, 21, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

.date-input-group select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.date-separator-symbol {
    font-size: 1.2rem;
    font-weight: 800;
    color: #c084fc;
    padding-bottom: 0.75rem;
    user-select: none;
}

.date-action-group {
    padding-bottom: 0.1rem;
}

.date-action-group .btn {
    padding: 0.75rem 1.5rem;
    height: auto;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Comment Result Card */
.comment-result-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(20px);
}

.comment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.comment-card-header .header-titles {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comment-card-header .sub-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comment-header-actions {
    display: flex;
    gap: 0.6rem;
}

.btn-copy-comment {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-copy-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-download-txt {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-download-txt:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.comment-editor-wrapper {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0d0c15;
}

.comment-textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    font-family: 'Fira Code', 'Noto Sans KR', monospace;
    font-size: 0.92rem;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-textarea:focus {
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(13, 12, 21, 0.9);
    border: 1px solid #3b82f6;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Footer */
.app-footer {
    margin-top: auto;
    padding: 3rem 0 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}



/* ============================================================
   Daily GA4 Process & Indexing Extension Styles
   ============================================================ */

.full-dropzone {
    width: 100%;
    border: 2px dashed rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.full-dropzone:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
    transform: translateY(-2px);
}

.full-dropzone.drag-over {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.full-dropzone.loaded {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

.rule-info-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem;
}

.rule-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rules-accordion summary {
    list-style: none;
    user-select: none;
}

.rules-accordion summary::-webkit-details-marker {
    display: none;
}

.rules-accordion[open] summary {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-toggles .filter-btn {
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-toggles .filter-btn.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    font-weight: 600;
}


/* GA4 Table enhancements */
#ga4ProcessTable th, #ga4ProcessTable td,
#ga4IndexTable th, #ga4IndexTable td {
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
    text-align: left;
}

#ga4ProcessTable th, #ga4IndexTable th {
    background: rgba(15, 23, 42, 0.95);
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

#ga4IndexTable td:nth-child(7) {
    background: rgba(245, 158, 11, 0.05);
}


/* ============================================================
   Pipeline Tab Navigation Styles
   ============================================================ */
.pipeline-tab-nav {
    display: flex;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    flex-wrap: wrap;
}

.nav-tab-btn {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-tab-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.nav-tab-btn i {
    font-size: 1.05rem;
    color: #10b981;
}

.nav-tab-btn.active i {
    color: #34d399;
}

.tab-badge-new {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
}

.main-tab-pane {
    display: none;
    animation: fadeInPane 0.3s ease forwards;
}

.main-tab-pane.active {
    display: block;
}

@keyframes fadeInPane {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Specific table highlighting */
#kwProcessTable th, #kwProcessTable td,
#kwIndexTable th, #kwIndexTable td {
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
    text-align: left;
}

#kwProcessTable th, #kwIndexTable th {
    background: rgba(15, 23, 42, 0.95);
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

#kwIndexTable td:nth-child(7) {
    background: rgba(245, 158, 11, 0.05);
}
