* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #334155;
    line-height: 1.6;
    min-height: 100vh;
} */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

/* Header Styles */
header {
    text-align: center;
     background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
    color: white !important;
    padding: 20px;
    border-radius: 15px;
/*     margin-bottom: 30px; */
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}




header h1 {
    font-size: 45px !important;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    flex: 1;
	  margin-top:10px;
}

.input-section,
.result-section {
    background: #ffffff !important;
    padding: 2rem;
    border-radius: 12px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0 !important;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #fbbf24 !important;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
}

.stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.stat {
    background: #f8fafc !important;
    padding: 0.25rem 0.75rem;
    border-radius: 20px !important;
    color: #334155 !important;
    font-weight: 500;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #334155;
}

.textarea-container {
    position: relative;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff !important;
}

textarea:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea::placeholder {
    color: #64748b;
}

.file-upload-container {
/*     position: absolute !important; */
    top: 0.75rem;
    right: 0.75rem;
}

.file-btn {
    background: #f59e0b !important;
    color: #ffffff !important;
    border: none !important;
    padding:13px !important;
    border-radius: 8px !important;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.separator-group {
    margin-bottom: 2rem;
}

.separator-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #334155;
}

.separator-group input {
    width: 100px;
    padding: 0.75rem;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.separator-group input:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.action-buttons,
.result-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 15px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
     background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%) !important;
    color: #ffffff !important;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: #64748b !important;
    color: #ffffff!important;
}

.btn-secondary:hover:not(:disabled) {
    background: #334155;
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
}

.btn-accent:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 1.1rem;
}

.result-container {
    margin-bottom: 1.5rem;
}

#resultOutput {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    color: #ffffff;
    opacity: 0.8;
}

.notification {
    position: fixed;
    top: 20px;
    right: 0;
    background: #1e40af;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: translateX(120%);   /* fully hidden */
    transition: transform 0.3s ease-in-out;
    font-weight: 500;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);  /* slide in */
}

.notification.success { background: #10b981; }
.notification.error { background: #ef4444; }



/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0px!important;
    }

    .header h1 {
        font-size: 35px !important;
    }

    .header p {
        font-size: 1rem;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .input-section,
    .result-section {
        padding: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .stats {
        flex-wrap: wrap;
    }

    .action-buttons,
    .result-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .file-upload-container {
        position: static;
        margin-top: 1rem;
    }

    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }

    .input-section,
    .result-section {
        padding: 1rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    textarea {
        font-size: 0.875rem;
    }
}

/* Animation for button press effect */
.btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}
