/* PDF to DOC Converter Styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #64748b;
    --light: #f8fafc;
    --dark: #1e293b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
    --transition: all 0.3s ease;
}

.pdf-converter-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
    padding: 20px 0;
}

.pdf-converter-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pdf-converter-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--dark);
    font-weight: 700;
}

.pdf-converter-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--dark);
    font-weight: 600;
}

.pdf-converter-wrapper p {
    color: var(--secondary);
    margin-bottom: 24px;
    font-size: 1rem;
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 24px;
    position: relative;
}

.upload-area:hover, .upload-area.drag-over {
    border-color: var(--primary);
    background-color: rgba(37, 99, 235, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.upload-text {
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.875rem;
    margin: 4px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--light);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-warning:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.file-list {
    margin-top: 24px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: var(--transition);
    background: white;
}

.file-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.file-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 16px;
    min-width: 24px;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    margin-bottom: 4px;
    word-break: break-word;
}

.file-size {
    font-size: 0.875rem;
    color: var(--secondary);
}

.file-status {
    margin-right: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.status-queued {
    color: var(--secondary);
}

.status-converting {
    color: var(--primary);
}

.status-completed {
    color: var(--success);
}

.status-error {
    color: var(--danger);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.conversion-results {
    margin-top: 32px;
    background: var(--light);
    padding: 24px;
    border-radius: var(--radius);
}

.result-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: white;
}

.result-icon {
    font-size: 1.5rem;
    color: var(--success);
    margin-right: 16px;
    min-width: 24px;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    font-weight: 500;
    margin-bottom: 4px;
    word-break: break-word;
}

.result-size {
    font-size: 0.875rem;
    color: var(--secondary);
}

.ad-space {
    height: 90px;
    background: linear-gradient(135deg, var(--light), #e2e8f0);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
    color: var(--secondary);
    font-style: italic;
    border: 1px dashed var(--border);
}

/* Loader Animation */
.loader {
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification System */
.pdf-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 10000;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    font-weight: 500;
}

.pdf-notification.show {
    transform: translateX(0);
}

.pdf-notification-success {
    background-color: var(--success);
    color: white;
}

.pdf-notification-error {
    background-color: var(--danger);
    color: white;
}

.pdf-notification-warning {
    background-color: var(--warning);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pdf-converter-card {
        padding: 24px 16px;
        margin: 10px;
    }
    
    .upload-area {
        padding: 32px 16px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        margin: 2px 0;
    }
    
    .file-item, .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .file-status, .file-actions {
        align-self: stretch;
        text-align: center;
    }
    
    .file-info {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pdf-converter-wrapper h1 {
        font-size: 1.75rem;
    }
    
    .pdf-converter-wrapper h2 {
        font-size: 1.25rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .upload-text {
        font-size: 1.1rem;
    }
}

/* Utility Classes */
.pdf-hidden {
    display: none !important;
}

.pdf-text-center {
    text-align: center;
}

.pdf-mt-4 {
    margin-top: 24px;
}

.pdf-mb-4 {
    margin-bottom: 24px;
}

/* File Input Styling */
.pdf-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Success States */
.success-checkmark {
    color: var(--success);
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}