* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    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);
}


.subtitle {
    font-size: 1.1rem;
    color: white;
    font-weight: 400;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
	margin-top:10px;
}

.input-section,
.output-section {
    background: #ffffff !important;
    padding: 2rem;
    border-radius: 12px !important;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) !important;
    border: 2px solid #f3f4f6 !important;
    transition: all 0.3s ease;
}

.input-section:hover,
.output-section:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04) !important;
    border-color: #3b82f6;
}

.section-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

.input-textarea,
.output-textarea {
    width: 100%;
    height: 200px;
    padding: 1rem;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    resize: vertical;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.input-textarea:focus,
.output-textarea:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
    background-color: #ffffff !important;
}

.options {
    margin: 1.5rem 0;
    display: flex;
    gap: 1.5rem;
}

.option {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: #374151;
    transition: color 0.2s ease;
}

.option:hover {
    color: #1e3a8a;
}

.option input[type="checkbox"] {
    display: none;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #ffffff !important;
    border: 2px solid #d1d5db !important;
    border-radius: 4px !important;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.option:hover .checkmark {
    border-color: #3b82f6 !important;
}

.option input[type="checkbox"]:checked ~ .checkmark {
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px !important;
    height: 10px;
    border: solid white !important;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding:20 !important;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.5rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    width: 16px;
    height: 16px;
	
}
.btn-icon path {
  fill: none !important;
  stroke: currentColor;
}

.btn-primary {
  background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%) !important;
    color: white !important;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transform: translateY(-1px) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #4b5563, #374151) !important;
    color: white !important;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #374151, #1f2937);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
    transform: translateY(-1px) !important;
}

.btn-outline {
    background: #ffffff !important;
    color: #1e3a8a !important;
    border: 2px solid #1e3a8a !important;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-outline:hover:not(:disabled) {
    background: #1e3a8a;
    color: white;
    transform: translateY(-1px) !important;
}

.statistics {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6) !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toast {
    position: fixed;
    top: 25px;
    right: 0px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

@media (max-width: 768px) {
    .container {
        padding: 0px!important;
    }
    
    .title {
        font-size: 35px !important;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .input-section,
    .output-section {
        padding: 1.5rem;
    }
	.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding:10 !important;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.5rem;
}
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .result-actions {
        justify-content: center;
    }
    
    .options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .statistics {
        flex-direction: column;
        gap: 1rem;
    }
    
    .toast {
        left: 20px;
        right: 20px;
			top:0px !important;
        transform: translateY(-100%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .header {
        margin-bottom: 2rem;
        padding: 1.5rem 0;
    }
    
    .title {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .input-section,
    .output-section {
        padding: 1rem;
    }
    
    .input-textarea,
    .output-textarea {
        height: 150px;
        font-size: 0.8rem;
    }
}

/* Loading state */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
