/* ============================================
   style-excel.css - Excel File Viewer Styles
   Modern design matching MD/DOCX viewer pattern
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Colors - Excel Green Theme */
    --primary: #217346;
    --primary-dark: #185C37;
    --primary-light: #33925D;
    --primary-rgb: 33, 115, 70;
    
    /* Secondary Colors */
    --secondary: #64748B;
    --secondary-dark: #475569;
    
    /* Status Colors */
    --success: #10B981;
    --success-light: #D1FAE5;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    
    /* Accent Colors */
    --purple: #8B5CF6;
    --orange: #F97316;
    --teal: #14B8A6;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ============================================
   TOOL CONTAINER
   ============================================ */
.tool-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ============================================
   TOOL HEADER
   ============================================ */
.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.tool-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.tool-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.tool-description strong {
    color: var(--gray-700);
}

/* ============================================
   TOOL MAIN
   ============================================ */
.tool-main {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* ============================================
   UPLOAD SECTION
   ============================================ */
.upload-section {
    padding: 30px;
}

.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.upload-area:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.02) 0%, var(--white) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    border-style: solid;
}

.upload-content {
    position: relative;
    z-index: 1;
}

.upload-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: transform var(--transition);
}

.upload-area:hover .upload-icon-wrapper {
    transform: scale(1.05);
}

.upload-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 8px;
}

.upload-text p {
    color: var(--gray-500);
    margin: 0;
}

.file-types {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.file-type-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.file-type-badge.xlsx {
    background: #E8F5E9;
    color: #2E7D32;
}

.file-type-badge.xls {
    background: #E3F2FD;
    color: #1565C0;
}

.upload-limit {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--gray-400);
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-container {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    width: 0%;
    transition: width var(--transition);
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ============================================
   ERROR MESSAGE
   ============================================ */
.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--danger-light);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    color: var(--danger);
    margin-top: 20px;
    font-weight: 500;
}

.error-message svg {
    flex-shrink: 0;
}

/* ============================================
   EDITOR SECTION
   ============================================ */
.editor-section {
    border-top: 1px solid var(--gray-200);
}

/* File Info Bar */
.file-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 10px;
}

.file-info-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-600);
}

.file-info-left svg {
    color: var(--primary);
}

.file-name {
    font-weight: 600;
    color: var(--gray-800);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.file-info-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sheet-count-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--info-light);
    color: var(--info);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.ready {
    background: var(--success-light);
    color: var(--success);
}

/* Options Bar */
.options-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    white-space: nowrap;
}

.option-group label svg {
    color: var(--gray-400);
}

.styled-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: all var(--transition-fast);
}

.styled-select:hover {
    border-color: var(--primary);
}

.styled-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.sheet-info {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-left: 8px;
}

/* Checkbox Group */
.checkbox-group {
    margin-left: auto;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-600);
}

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

.checkbox-label svg {
    color: var(--gray-400);
}

/* ============================================
   TOOLBAR
   ============================================ */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    overflow: hidden;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-btn:not(:last-child) {
    border-right: 1px solid var(--gray-300);
}

.view-btn:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.view-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.view-btn svg {
    width: 18px;
    height: 18px;
}

/* Toolbar Buttons */
.toolbar-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toolbar-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

/* ============================================
   CONTENT AREA
   ============================================ */
.content-area {
    min-height: 450px;
    max-height: 65vh;
    overflow: auto;
    background: var(--white);
}

.excel-body {
    padding: 20px;
    min-height: 400px;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: var(--gray-400);
    text-align: center;
}

.empty-state svg {
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* Excel Table */
.excel-table-wrapper {
    overflow-x: auto;
}

.excel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.excel-table th {
    background: var(--primary);
    color: var(--white);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.excel-table td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--gray-200);
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.excel-table tr:hover td {
    background: var(--gray-50);
}

.excel-table tr:nth-child(even) td {
    background: var(--gray-50);
}

.excel-table tr:nth-child(even):hover td {
    background: var(--gray-100);
}

/* JSON View */
.json-view {
    background: var(--gray-900);
    color: #E5E5E5;
    padding: 20px;
    border-radius: var(--radius);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Cell Tooltip */
.cell-tooltip {
    position: fixed;
    max-width: 400px;
    padding: 10px 15px;
    background: var(--gray-800);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.stat-item svg {
    color: var(--gray-400);
}

.stat-item span {
    font-weight: 600;
    color: var(--gray-700);
}

/* ============================================
   ACTION BAR
   ============================================ */
.action-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

.btn-danger {
    background: var(--white);
    color: var(--danger);
    border: 1px solid var(--danger);
}

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

/* ============================================
   RELATED TOOLS
   ============================================ */
.related-tools {
    padding: 25px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.related-tools h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 15px;
    text-align: center;
}

.tools-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.tool-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tool-card svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   INFO SECTIONS
   ============================================ */
.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.info-header svg {
    color: var(--primary);
}

.info-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

/* Steps List */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--gray-200);
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}

.step-item:not(:last-child) {
    border-bottom: 1px dashed var(--gray-200);
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    position: absolute;
    left: -39px;
    box-shadow: var(--shadow-md);
}

.step-content {
    padding-left: 20px;
}

.step-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 6px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.feature-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--white);
}

.feature-icon.blue {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
}

.feature-icon.green {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.feature-icon.purple {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
}

.feature-icon.orange {
    background: linear-gradient(135deg, #F97316, #FB923C);
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 8px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* Format Badges */
.format-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.format-badge {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
}

.format-badge.xlsx {
    background: #E8F5E9;
    color: #2E7D32;
}

.format-badge.xls {
    background: #E3F2FD;
    color: #1565C0;
}

.format-badge.feature {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--gray-300);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--white);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-800);
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question .chevron {
    color: var(--gray-400);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-question .chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 20px 20px;
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.faq-answer strong {
    color: var(--gray-700);
}

/* ============================================
   FULLSCREEN OVERLAY
   ============================================ */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.fullscreen-overlay.active {
    display: flex;
}

.fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.fullscreen-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.fullscreen-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-600);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.zoom-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.zoom-level {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    min-width: 50px;
    text-align: center;
}

.keyboard-hint {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.close-fullscreen {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.close-fullscreen:hover {
    background: #DC2626;
}

.fullscreen-content {
    flex: 1;
    overflow: auto;
    padding: 20px;
}

/* Zoom Classes */
.zoom-75 { font-size: 0.75em; }
.zoom-90 { font-size: 0.9em; }
.zoom-100 { font-size: 1em; }
.zoom-110 { font-size: 1.1em; }
.zoom-125 { font-size: 1.25em; }
.zoom-150 { font-size: 1.5em; }

/* ============================================
   SUCCESS FEEDBACK
   ============================================ */
.copy-success {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--success);
    color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideIn 0.3s ease, slideOut 0.3s ease 2.5s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .options-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .option-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .checkbox-group {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .tool-container {
        padding: 20px 15px;
    }
    
    .tool-header h1 {
        font-size: 1.8rem;
    }
    
    .tool-title-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
    
    .file-info-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toolbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: center;
    }
    
    .view-btn span {
        display: none;
    }
    
    .action-bar {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-bar {
        justify-content: center;
    }
    
    .step-item {
        flex-direction: column;
    }
    
    .steps-list {
        padding-left: 30px;
    }
    
    .step-number {
        left: -46px;
    }
    
    .fullscreen-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .fullscreen-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .tool-header h1 {
        font-size: 1.5rem;
    }
    
    .file-types {
        flex-direction: column;
        align-items: center;
    }
    
    .tools-grid {
        flex-direction: column;
    }
    
    .tool-card {
        width: 100%;
        justify-content: center;
    }
    
    .format-badges {
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .tool-header,
    .upload-section,
    .toolbar,
    .action-bar,
    .stats-bar,
    .related-tools,
    .content-row-2,
    .header,
    .footer-mega {
        display: none !important;
    }
    
    .tool-main {
        box-shadow: none;
    }
    
    .editor-section {
        border: none;
    }
    
    .file-info-bar {
        background: none;
        border: none;
        padding: 10px 0;
    }
    
    .options-bar {
        display: none;
    }
    
    .content-area {
        max-height: none;
        overflow: visible;
    }
    
    .excel-table th {
        background: var(--gray-200) !important;
        color: var(--gray-800) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
