/* Word to PDF Converter – DozeGear - Main Styles */
.dozegear-word-pdf-converter {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
    line-height: 1.6;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.dg-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid #eaeaea;
}

/* Typography */
.dg-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.dg-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 2rem;
}

/* Installation Guide */
.dg-install-guide {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.dg-install-guide summary {
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    color: #2c3e50;
    list-style: none;
    outline: none;
}

.dg-install-guide summary::-webkit-details-marker {
    display: none;
}

.dg-install-guide summary::after {
    content: '▶';
    float: right;
    transition: transform 0.2s;
}

.dg-install-guide[open] summary::after {
    transform: rotate(90deg);
}

.dg-install-content {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: 0.5rem;
}

.dg-install-content ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.dg-install-content li {
    margin-bottom: 0.5rem;
}

/* Upload Area */
.dg-upload-area {
    border: 2px dashed #3498db;
    border-radius: 10px;
    padding: 3rem 1rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.dg-upload-area:hover,
.dg-upload-area.dragover {
    background: #e3f2fd;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.dg-upload-icon {
    color: #3498db;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.dg-upload-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.dg-upload-text {
    color: #7f8c8d;
    margin: 0 0 1rem 0;
}

.dg-upload-note {
    font-size: 0.875rem;
    color: #95a5a6;
    margin-top: 1rem;
}

/* Buttons */
.dg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
    text-decoration: none;
    line-height: 1;
}

.dg-button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.dg-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dg-button-primary {
    background: #3498db;
    color: white;
}

.dg-button-primary:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-1px);
}

.dg-button-secondary {
    background: #e0e0e0;
    color: #333;
}

.dg-button-secondary:hover:not(:disabled) {
    background: #d0d0d0;
}

.dg-button-success {
    background: #27ae60;
    color: white;
}

.dg-button-success:hover:not(:disabled) {
    background: #219653;
}

.dg-button-outline {
    background: transparent;
    border: 1px solid #bdc3c7;
    color: #7f8c8d;
}

.dg-button-outline:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #95a5a6;
}

.dg-button-full {
    width: 100%;
    margin-top: 1rem;
}

/* File Info */
.dg-file-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.dg-file-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dg-file-name {
    font-weight: 600;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.dg-remove-file {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #e74c3c;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
}

.dg-remove-file:hover {
    color: #c0392b;
}

.dg-file-details {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #7f8c8d;
}

.dg-file-size::before,
.dg-file-pages::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #95a5a6;
    border-radius: 50%;
    margin: 0 0.5rem 0.125rem 0;
}

/* Options */
.dg-options {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.dg-option-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dg-option-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 100px;
}

.dg-select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 1rem;
    color: #333;
}

/* Progress Indicator */
.dg-progress {
    margin: 2rem 0;
}

.dg-progress-bar {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.dg-progress-fill {
    height: 100%;
    background: #3498db;
    border-radius: 4px;
    width: 0;
    animation: progress-animation 2s ease-in-out infinite;
}

@keyframes progress-animation {
    0% { width: 0; transform: translateX(0); }
    50% { width: 60%; transform: translateX(0); }
    100% { width: 60%; transform: translateX(100%); }
}

.dg-progress-text {
    text-align: center;
    color: #3498db;
    font-weight: 600;
    margin: 0;
}

/* Results */
.dg-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.dg-result-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.dg-result-header h3 {
    color: #27ae60;
    margin: 0 0 0.5rem 0;
}

.dg-privacy-note {
    color: #7f8c8d;
    font-style: italic;
    margin: 0;
}

/* Preview */
.dg-preview {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.dg-preview summary {
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    outline: none;
}

.dg-preview summary::-webkit-details-marker {
    display: none;
}

.dg-preview summary::after {
    content: '▶';
    float: right;
    transition: transform 0.2s;
}

.dg-preview[open] summary::after {
    transform: rotate(90deg);
}

.dg-preview-content {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.dg-preview-content img {
    max-width: 100%;
    height: auto;
}

/* Result Actions */
.dg-result-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.dg-result-actions .dg-button {
    flex: 1;
    min-width: 150px;
}

/* Error Message */
.dg-error {
    padding: 1rem;
    background: #fee;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    margin: 1rem 0;
    text-align: center;
}

/* Limitations */
.dg-limitations {
    margin-top: 2rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #856404;
}

.dg-limitations p {
    margin: 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dg-container {
        padding: 1.5rem;
    }

    .dg-title {
        font-size: 1.75rem;
    }

    .dg-option-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .dg-option-label {
        min-width: auto;
    }

    .dg-select {
        width: 100%;
    }

    .dg-result-actions {
        flex-direction: column;
    }

    .dg-result-actions .dg-button {
        width: 100%;
    }

    .dg-file-details {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .dg-container {
        padding: 1rem;
    }

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

    .dg-button {
        padding: 0.625rem 1rem;
        font-size: 0.9375rem;
    }
}

/* Accessibility */
.dg-button:focus-visible,
.dg-select:focus-visible,
.dg-preview summary:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .dozegear-word-pdf-converter {
        display: none;
    }
}