/* assets/css/style.css */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #7209b7;
    --success-color: #4cc9f0;
    --error-color: #f72585;
    --warning-color: #f8961e;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdf-to-word-converter-pro * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.pdf-to-word-converter-pro {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
    color: var(--dark-color);
    line-height: 1.6;
}

.converter-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header {
    padding: 2.5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.card-header h2 {
    margin-bottom: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.card-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.card-body {
    padding: 2.5rem;
}

/* Upload Area Styles */
.upload-area {
    border: 3px dashed rgba(67, 97, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    margin-bottom: 2rem;
    cursor: pointer;
    position: relative;
    background: rgba(67, 97, 238, 0.02);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(67, 97, 238, 0.05);
    transform: translateY(-2px);
}

.upload-area.active {
    border-color: var(--primary-color);
    background: rgba(67, 97, 238, 0.08);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.15);
}

.upload-area.error {
    border-color: var(--error-color);
    background: rgba(247, 37, 133, 0.05);
}

.upload-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.upload-icon svg {
    stroke: currentColor;
}

.upload-area.active .upload-icon {
    opacity: 1;
    transform: scale(1.1);
}

.upload-text h3 {
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.upload-text p {
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.file-types {
    font-size: 0.875rem;
    color: var(--gray-color);
    opacity: 0.8;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* File Info Styles */
.file-info {
    display: none;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid rgba(67, 97, 238, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.file-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.file-size {
    color: var(--gray-color);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.file-status {
    color: var(--success-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.remove-file {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--gray-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.remove-file:hover {
    background: var(--error-color);
    color: white;
    transform: scale(1.1);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(67, 97, 238, 0.3);
}

.btn:disabled {
    background: var(--gray-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled::before {
    display: none;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.convert-btn {
    width: 100%;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    padding: 1.25rem 2rem;
}

.btn-icon svg {
    stroke: currentColor;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* Conversion Options */
.conversion-options {
    background: rgba(248, 249, 255, 0.8);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.options-section {
    margin-bottom: 1.5rem;
}

.options-section:last-child {
    margin-bottom: 0;
}

.options-section h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkbox {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.checkbox input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.option-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.option-description {
    font-size: 0.875rem;
    color: var(--gray-color);
    line-height: 1.4;
}

/* Format and Quality Options */
.format-options,
.quality-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.radio-label:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.radio-label input {
    display: none;
}

.radio-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.radio-label input:checked + .radio-custom {
    border-color: var(--primary-color);
}

.radio-label input:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.format-info,
.quality-info {
    display: flex;
    flex-direction: column;
}

.format-info strong,
.quality-info strong {
    font-weight: 600;
    color: var(--dark-color);
}

.format-info span,
.quality-info span {
    font-size: 0.875rem;
    color: var(--gray-color);
}

/* Progress Container */
.progress-container {
    display: none;
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#progressTitle {
    font-weight: 600;
    color: var(--dark-color);
}

#progressPercent {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.progress-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 5px;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--gray-color);
    text-align: center;
    margin-bottom: 1rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* Result Container */
.result-container {
    display: none;
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f0fff4 0%, #f0f8ff 100%);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid rgba(76, 201, 240, 0.2);
}

.success-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.result-message h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.result-message p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Error Message */
.error-message {
    display: none;
    color: var(--error-color);
    background: rgba(247, 37, 133, 0.05);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid rgba(247, 37, 133, 0.1);
    font-weight: 500;
}

/* Card Footer */
.card-footer {
    padding: 1.5rem 2rem;
    background: rgba(248, 249, 255, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.credits {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.credits a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.credits a:hover {
    text-decoration: underline;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-item h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--gray-color);
    line-height: 1.5;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-color);
    font-weight: 500;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .pdf-to-word-converter-pro {
        padding: 1rem 0.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .conversion-options {
        padding: 1.5rem;
    }

    .format-options,
    .quality-options {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-header {
        padding: 2rem 1rem;
    }

    .card-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .converter-card {
        margin-bottom: 2rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .option-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}