/* Enhanced root variables for consistent theming */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);
    --danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5253 100%);
    --info-gradient: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --primary-color: #667eea;
    --border-radius: 15px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    /* Scientific Calculator Theme */
    --sci-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --sci-secondary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --sci-accent: #4f46e5;
    --sci-bg: linear-gradient(45deg, #f0f9ff 0%, #e0f2fe 100%);
    
    /* Business Calculator Theme */
    --bus-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);
    --bus-secondary: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --bus-accent: #059669;
    --bus-bg: linear-gradient(45deg, #f0fdf4 0%, #dcfce7 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--primary-gradient);
    background-attachment: fixed;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://img.icons8.com/color/48/000000/mathematics.png') repeat;
    opacity: 0.03;
    z-index: -1;
}

.calculator {
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
}

.calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

h2 {
    color: #4a5568;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.section {
    margin-bottom: 2rem;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.section:hover {
    transform: translateY(-2px);
}

.input-group, .scientific-grid, .converter-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

input, select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

input:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
}

select {
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #667eea 50%),
                      linear-gradient(135deg, #667eea 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px),
                         calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 3rem;
}

button {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

button:hover::before {
    left: 100%;
}

.result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #2d3748;
    text-align: center;
    border-left: 4px solid #667eea;
    position: relative;
    overflow: hidden;
}

.result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 1rem 0;
    padding: 0.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f8fafc;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: #f8fafc;
}

.history-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.history-item {
    padding: 0.8rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #4a5568;
    transition: background-color 0.2s ease;
}

.history-item:hover {
    background-color: #f8fafc;
}

.history-item:last-child {
    border-bottom: none;
}

.clear-history {
    background: linear-gradient(135deg, #f6365b 0%, #ff5252 100%);
}

.clear-history:hover {
    background: linear-gradient(135deg, #ff5252 0%, #f6365b 100%);
    box-shadow: 0 5px 15px rgba(246, 54, 91, 0.4);
}

.converter-group span {
    display: flex;
    align-items: center;
    color: #4a5568;
    font-weight: 500;
    padding: 0 0.5rem;
}

@media (max-width: 768px) {
    .calculator {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 1rem;
    }

    .business-inputs .input-group {
        grid-template-columns: 1fr;
    }

    .profit-inputs {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    th, td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .calculator {
        max-width: 900px;
        padding: 2rem;
    }

    .business-inputs .input-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .calculator {
        padding: 2.5rem;
    }

    .business-inputs .input-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}

.calculator-switch {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.switch-btn {
    min-width: 200px;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.switch-btn:not(.active) {
    opacity: 0.7;
}

.switch-btn:hover:not(.active) {
    opacity: 0.9;
}

.calc-section {
    display: none;  /* Hide by default */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calc-section.active {
    display: block;
    opacity: 1;
}

.business-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.business-inputs .input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.business-results {
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.result-item {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.highlight {
    background: linear-gradient(to right, #edf2ff, #f8fafc);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.result-item span:first-child {
    color: #4a5568;
}

.result-item span:last-child {
    color: #2d3748;
    font-weight: 500;
}

.profit-inputs {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.profit-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profit-field label {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
}

.profit-field input {
    width: 100%;
}

.saved-calculations {
    margin-top: 2rem;
    overflow-x: auto;
}

.table-container {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background: #f8fafc;
    padding: 1.2rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: var(--transition);
}

tr:hover td {
    background: #f8fafc;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.action-buttons button {
    position: relative;
    overflow: hidden;
}

.export-btn {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.import-btn {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.edit-btn, .delete-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.edit-btn {
    background: #60a5fa;
    color: white;
    border: none;
}

.delete-btn {
    background: #ef4444;
    color: white;
    border: none;
}

.pdf-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5253 100%);
}

.pdf-btn:hover {
    background: linear-gradient(135deg, #ee5253 0%, #d63031 100%);
    box-shadow: 0 5px 15px rgba(238, 82, 83, 0.4);
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-gradient: linear-gradient(135deg, #4c1d95 0%, #2d3748 100%);
    }

    body {
        background: var(--primary-gradient);
    }

    .calculator {
        background: rgba(255, 255, 255, 0.95);
    }

    input, select {
        background: #f8fafc;
    }

    .result-item.highlight {
        background: linear-gradient(to right, #edf2ff, #f8fafc);
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Apply animations */
.calculator {
    animation: fadeIn 0.5s ease-out;
}

.result-item {
    animation: fadeIn 0.3s ease-out;
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Scientific Calculator Specific Styles */
#scientific-calc {
    background: var(--sci-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
}

#scientific-calc h2 {
    color: var(--sci-accent);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 2rem;
}

#scientific-calc .section {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(99, 102, 241, 0.1);
}

#scientific-calc button {
    background: var(--sci-gradient);
}

#scientific-calc .result {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sci-accent);
    text-align: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
}

/* Business Calculator Specific Styles */
#business-calc {
    background: var(--bus-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(52, 211, 153, 0.1);
}

#business-calc h2 {
    color: var(--bus-accent);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 2rem;
}

#business-calc .section {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(52, 211, 153, 0.1);
}

#business-calc button {
    background: var(--bus-gradient);
}

/* Enhanced Calculator Switch */
.calculator-switch {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.switch-btn {
    position: relative;
    overflow: hidden;
    min-width: 180px;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.switch-btn:not(.active) {
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.switch-btn[onclick*="scientific"] {
    background: var(--sci-gradient);
}

.switch-btn[onclick*="business"] {
    background: var(--bus-gradient);
}

/* Enhanced Input Styles */
.input-group input, .input-group select {
    border: 2px solid #e2e8f0;
    background: white;
    transition: all 0.3s ease;
}

#scientific-calc .input-group input:focus,
#scientific-calc .input-group select:focus {
    border-color: var(--sci-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

#business-calc .input-group input:focus,
#business-calc .input-group select:focus {
    border-color: var(--bus-accent);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

/* Enhanced Results Display */
#business-calc .business-results {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
}

#business-calc .result-item {
    padding: 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

#business-calc .result-item.highlight {
    background: linear-gradient(to right, #f0fdf4, white);
    border-left: 4px solid var(--bus-accent);
}

/* Enhanced Action Buttons */
.action-buttons button {
    border-radius: 12px;
    padding: 1.2rem 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.action-buttons button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 50%);
    transform: scale(0);
    transition: transform 0.5s;
}

.action-buttons button:hover::after {
    transform: scale(1);
}

/* Animated Background */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Enhanced Table Styles */
.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#business-calc .table-container th {
    background: var(--bus-gradient);
    color: white;
    padding: 1.2rem;
}

/* Add these new animation effects */
@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.result-item {
    animation: slideIn 0.3s ease-out forwards;
}

/* Add glass morphism effect */
.section {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Add these styles for the scientific calculator layout */
.calc-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-display {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--sci-accent);
    font-size: 1.1rem;
    color: var(--sci-accent);
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.result-display.has-result {
    background: linear-gradient(to right, #f0f7ff, white);
    border-left-width: 6px;
    transform: translateY(0);
    opacity: 1;
}

/* Enhanced input groups for scientific calculator */
#scientific-calc .input-group,
#scientific-calc .converter-group {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#scientific-calc .input-area {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Animation for result updates */
@keyframes resultSlideDown {
    0% { 
        transform: translateY(-10px);
        opacity: 0;
    }
    100% { 
        transform: translateY(0);
        opacity: 1;
    }
}

.result-display.updating {
    animation: resultSlideDown 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calc-column {
        gap: 0.8rem;
    }

    .result-display {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Scientific Functions Section Specific Styles */
.scientific-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.sci-func {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

#sciOperator {
    font-size: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
    display: block;
}

.angle-mode {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.angle-mode label {
    font-size: 0.95rem;
    color: #4a5568;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.angle-mode label:has(input:checked) {
    background: var(--sci-gradient);
    color: white;
}

.angle-mode input[type="radio"] {
    margin-right: 0.5rem;
}

#sciNum {
    font-size: 1.2rem;
    padding: 1.2rem;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* Enhanced Scientific Results */
#scientific-calc .result-display {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--sci-accent);
    margin-top: 1.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scientific Section Layout */
#scientific-calc .section {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 2rem;
}

#scientific-calc .section h2 {
    text-align: center;
    color: var(--sci-accent);
    font-size: 1.4rem;
    margin-bottom: 2rem;
    position: relative;
}

#scientific-calc .section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--sci-gradient);
    border-radius: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sci-func {
        padding: 1.5rem;
    }

    #sciOperator {
        font-size: 0.95rem;
        padding: 0.8rem;
    }

    #sciNum {
        font-size: 1.1rem;
        padding: 1rem;
    }

    .angle-mode {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    #scientific-calc .result-display {
        font-size: 1.1rem;
        padding: 1.2rem;
        min-height: 70px;
    }
}

@media (min-width: 769px) {
    .scientific-grid {
        padding: 1rem;
    }

    #scientific-calc button {
        max-width: 200px;
        margin: 1rem auto;
    }
}

/* File Converter Styles */
.file-converter-group {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.file-input-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    background: var(--sci-gradient);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.file-icon {
    font-size: 1.5rem;
}

.file-label input[type="file"] {
    display: none;
}

.file-name {
    color: #4a5568;
    font-size: 0.9rem;
    text-align: center;
}

.convert-options {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.convert-options select {
    flex: 1;
}

.convert-btn {
    background: var(--sci-gradient);
    min-width: 120px;
}

/* Loading animation */
.converting {
    position: relative;
}

.converting::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Download options styling */
.download-options {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.word-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.image-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
}

.download-icon {
    font-size: 1.2rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
