.minifier-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Arial', sans-serif;
}

.tab-container {
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    background-color: #f5f7fa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tab {
    flex: 1;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #5a6a7a;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab.active {
    background-color: #ffffff;
    color: #4a7bff;
    border-bottom: 3px solid #4a7bff;
}

.tab:hover:not(.active) {
    background-color: #e9ecef;
    color: #2a3b4c;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.editor-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 992px) {
    .editor-wrapper {
        flex-direction: row;
    }
}

.editor-container {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    display: flex;
    flex-direction: column;
}

.editor-header {
    background-color: #f0f3f7;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-title {
    font-weight: 600;
    color: #2a3b4c;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats {
    font-size: 13px;
    color: #5a6a7a;
    font-weight: normal;
}

.editor-controls {
    display: flex;
    gap: 10px;
}

.input-container, .output-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.editor-textarea {
    flex: 1;
    min-height: 300px;
    padding: 15px;
    /* font-family: 'Consolas', monospace; */
    /* font-size: 14px; */
    line-height: 1.5;
    border: none;
    resize: none;
    outline: none;
    background-color: #f9fafc;
}

.output-textarea {
    background-color: #f5f8ff;
}

.action-buttons {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: #4a7bff;
    color: white;
}

.btn-primary:hover {
    background-color: #3a6ae8;
}

.btn-secondary {
    background-color: #f0f3f7;
    color: #2a3b4c;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e0e3e7;
}

.action-button {
    padding: 6px 12px;
    background-color: #f0f3f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #2a3b4c;
    transition: all 0.2s;
}

.action-button:hover {
    background-color: #e0e3e7;
}

.options-container {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.options-title {
    font-weight: 600;
    color: #2a3b4c;
    margin-bottom: 10px;
    font-size: 16px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

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

.option-item label {
    font-size: 14px;
    color: #5a6a7a;
    cursor: pointer;
}

.savings-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    padding:35px 15px;
    background-color: #ecf3ff;
    border-radius: 8px;
    text-align: center;
}

.savings-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.savings-label {
    font-size: 13px;
    color: #5a6a7a;
    margin-bottom: 5px;
}

.savings-value {
    font-size: 20px;
    font-weight: 600;
    color: #2a3b4c;
}

.savings-value.good {
    color: #27ae60;
}

.features-section {
    margin-top: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background-color: #f9fafc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 24px;
    color: #4a7bff;
    margin-bottom: 15px;
}

.feature-title {
    font-weight: 600;
    font-size: 18px;
    color: #2a3b4c;
    margin-bottom: 10px;
}

.feature-description {
    color: #5a6a7a;
    font-size: 14px;
    line-height: 1.5;
}

.minifier-header {
    text-align: center;
    margin-bottom: 30px;
}

.minifier-header h2 {
    color: #2a3b4c;
    font-size: 28px;
    margin-bottom: 15px;
}

.minifier-header p {
    color: #5a6a7a;
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4a7bff;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    animation: slideIn 0.3s, fadeOut 0.5s 2s forwards;
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 8px;
    padding: 10px;
    border-radius: 4px;
    background-color: #ffeded;
    display: none;
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(74, 123, 255, 0.2);
    border-radius: 50%;
    border-top-color: #4a7bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.file-upload {
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-label {
    display: block;
    padding: 35px 15px;
    background-color: #f0f3f7;
    color: #2a3b4c;
    border: 1px dashed #aaa;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-label:hover {
    background-color: #e0e3e7;
}

.file-name {
    margin-top: 8px;
    font-size: 13px;
    color: #5a6a7a;
    word-break: break-all;
}