/* PDF to Word Converter Styles */

/* Basic Reset & Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#pwc-converter-app {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    color: #e0e0e0;
    position: relative;
    overflow: hidden;
}

#pwc-converter-app h2 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    background: linear-gradient(135deg, #7877c6, #ff77c6, #77dbff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 24px;
    text-shadow: 0 0 15px rgba(120, 119, 198, 0.4);
    position: relative;
    z-index: 1;
}

/* File Upload Area */
.pwc-upload-area {
    background: rgba(255, 255, 255, 0.08);
    border: 2px dashed rgba(120, 119, 198, 0.5);
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(10px);
}

.pwc-upload-area.pwc-drag-over {
    border-color: rgba(120, 119, 198, 0.8);
    background: rgba(120, 119, 198, 0.1);
}

.pwc-upload-area p {
    margin: 10px 0;
    color: rgba(224, 224, 224, 0.7);
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 400;
}

.pwc-upload-button {
    background: linear-gradient(135deg, #7877c6, #9b59b6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 20px rgba(120, 119, 198, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    margin-top: 12px;
}

.pwc-upload-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s;
}

.pwc-upload-button:hover::before {
    left: 100%;
}

.pwc-upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(120, 119, 198, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pwc-upload-button:disabled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: rgba(224, 224, 224, 0.5);
}

#pwc-file-input {
    display: none;
}

.pwc-file-info {
    margin-top: 15px;
    font-size: 14px;
    color: rgba(224, 224, 224, 0.7);
    font-weight: 400;
}

/* Options Area */
.pwc-options {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.pwc-options label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #e0e0e0;
}

.pwc-options select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 12px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="rgba(224,224,224,0.7)" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.3s ease;
}

.pwc-options select:focus {
    border-color: rgba(120, 119, 198, 0.6);
    box-shadow: 0 0 0 2px rgba(120, 119, 198, 0.3);
    outline: none;
}

/* Progress Area */
.pwc-progress-area {
    margin-bottom: 24px;
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(10px);
}

.pwc-progress-bar-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    height: 30px;
    margin-bottom: 12px;
}

.pwc-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #7877c6, #9b59b6);
    color: white;
    text-align: center;
    line-height: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: width 0.4s ease;
}

.pwc-progress-text {
    text-align: center;
    color: rgba(224, 224, 224, 0.7);
    font-size: 14px;
    font-weight: 400;
}

/* Results Area */
.pwc-results-area {
    margin-top: 24px;
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(10px);
}

.pwc-results-area h3 {
    font-size: 22px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pwc-download-links a {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #7877c6, #9b59b6);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 20px rgba(120, 119, 198, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.pwc-download-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s;
}

.pwc-download-links a:hover::before {
    left: 100%;
}

.pwc-download-links a:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(120, 119, 198, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pwc-stats, .pwc-health-report {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.pwc-stats h4, .pwc-health-report h4 {
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 12px;
}

.pwc-stats p, .pwc-health-report p {
    margin: 8px 0;
    color: rgba(224, 224, 224, 0.7);
    font-size: 14px;
    font-weight: 400;
}

/* Error Message */
.pwc-error-message {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.25), rgba(244, 67, 54, 0.12));
    color: #e57373;
    border: 1px solid rgba(244, 67, 54, 0.35);
    padding: 15px 20px;
    border-radius: 16px;
    font-weight: 500;
    margin-top: 15px;
    display: none;
}

/* Loading Spinner */
.pwc-spinner {
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top: 4px solid #7877c6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: pwc-spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

@keyframes pwc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Reset Button */
.pwc-reset-button {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 20px rgba(108, 117, 125, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    margin-top: 15px;
}

.pwc-reset-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s;
}

.pwc-reset-button:hover::before {
    left: 100%;
}

.pwc-reset-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(108, 117, 125, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    #pwc-converter-app {
        padding: 20px;
        border-radius: 20px;
        margin: 16px;
    }

    .pwc-upload-area {
        padding: 30px 15px;
        border-radius: 12px;
    }

    .pwc-upload-button, .pwc-reset-button {
        padding: 10px 20px;
        border-radius: 14px;
    }

    .pwc-options, .pwc-progress-area, .pwc-results-area {
        border-radius: 16px;
        padding: 16px;
    }

    #pwc-converter-app h2 {
        font-size: clamp(22px, 3.5vw, 28px);
    }
}

@media (max-width: 480px) {
    #pwc-converter-app {
        padding: 16px;
        border-radius: 16px;
    }

    .pwc-upload-area {
        padding: 25px 12px;
    }

    .pwc-options select {
        padding: 8px 10px;
        font-size: 13px;
    }

    .pwc-upload-button, .pwc-reset-button {
        padding: 10px 18px;
        font-size: 13px;
    }
}