/* Document Generator Styles */

.doc-generator {
    padding: 4rem 2rem;
    background: var(--darker);
}

.doc-generator-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    min-height: 600px;
}

.generator-sidebar {
    background: var(--dark);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.generator-sidebar h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.generator-sidebar h3:first-child {
    margin-top: 0;
}

.doc-types {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doc-type-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--gray);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.doc-type-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--light);
}

.doc-type-btn.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--light);
}

.doc-icon {
    font-size: 1.25rem;
}

.doc-params {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.doc-params label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.doc-params select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--light);
    font-size: 0.9rem;
    cursor: pointer;
}

.doc-params select:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
}

.generate-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Preview Panel */
.generator-preview {
    background: var(--dark);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header h3 {
    font-size: 1rem;
    color: var(--light);
}

.preview-actions {
    display: flex;
    gap: 0.5rem;
}

.preview-action {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--gray);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
}

.preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #fff;
}

/* Document Preview Styles */
.doc-preview {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.6;
}

.doc-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.doc-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #6366f1;
    letter-spacing: 0.05em;
}

.doc-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
    color: #0f172a;
}

.doc-subtitle {
    color: #64748b;
    margin-top: 0.25rem;
}

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

.doc-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.doc-section p {
    color: #475569;
}

.doc-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.doc-metric {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0.25rem;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.doc-table th,
.doc-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.doc-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.doc-table td {
    color: #1e293b;
}

.status-ok {
    color: #10b981;
    font-weight: 600;
}

.doc-checklist {
    list-style: none;
    margin-top: 1rem;
}

.doc-checklist li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #475569;
}

.doc-checklist li.check-ok::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.doc-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
}

.doc-footer p {
    margin: 0.25rem 0;
}

/* Responsive */
@media (max-width: 900px) {
    .doc-generator-inner {
        grid-template-columns: 1fr;
    }

    .generator-sidebar {
        order: 2;
    }

    .generator-preview {
        min-height: 500px;
    }
}
