/* Color Variables */
:root {
    --primary-color: #4361ee;
    --primary-light: #4895ef;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --text-color: #2b2d42;
    --text-light: #8d99ae;
    --background-color: #f8f9fa;
    --card-color: #ffffff;
    --border-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tagline {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Converter Card Styles */
.converter-card {
    background-color: var(--card-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Upload Section */
.upload-section {
    padding: 3rem 2rem;
    text-align: center;
}

.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: var(--primary-light);
    background-color: rgba(67, 97, 238, 0.05);
}

.drop-zone i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.drop-zone h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.file-types {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.divider {
    position: relative;
    margin: 1.5rem 0;
    color: var(--text-light);
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: var(--border-color);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.convert-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background-color: var(--primary-color);
    color: white;
}

.convert-btn:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.convert-btn:hover:not(:disabled) {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Options Section */
.options-section {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    display: none;
}

.options-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.options-section h3 i {
    color: var(--primary-color);
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.option-item:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.radio-custom,
.checkbox-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-custom {
    border-radius: 4px;
}

.option-item input[type="radio"]:checked + .radio-custom,
.option-item input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.option-item input[type="radio"]:checked + .radio-custom::after,
.option-item input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
}

.option-item input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 10px;
    background-color: transparent;
    border-radius: 0;
}

.option-item input {
    display: none;
}

.option-text {
    flex: 1;
}

/* Progress Section */
.progress-section {
    padding: 2rem;
    display: none;
}

.progress-container {
    background-color: rgba(67, 97, 238, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.file-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.progress-percent {
    font-weight: 600;
    color: var(--primary-color);
}

.progress-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-status {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Result Section */
.result-section {
    padding: 3rem 2rem;
    text-align: center;
    display: none;
}

.result-content {
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.result-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.result-message {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(67, 97, 238, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    justify-content: center;
}

.file-info i {
    font-size: 2rem;
    color: var(--primary-color);
}

.file-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.converted-file-name {
    font-weight: 600;
}

.file-size {
    color: var(--text-light);
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.download-btn {
    background-color: var(--success-color);
    color: white;
}

.download-btn:hover {
    background-color: #3aa8d8;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: rgba(67, 97, 238, 0.05);
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    margin-bottom: 3rem;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Footer Styles */
footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .drop-zone {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}