/* Termos Generator - Estilos específicos */

.termos-checkboxes {
    margin: 15px 0 25px;
    padding: 18px 20px;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #eee;
}
.termos-check-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #444;
    margin: 0 0 12px;
}
.termos-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.termos-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    user-select: none;
}
.termos-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #4e2783;
    cursor: pointer;
}
.termos-disclaimer {
    margin: 16px 0 0;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    text-align: left;
}

/* Tabs */
.doc-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #eee;
    margin: 0 0 0;
}
.doc-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    background: none;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: "Montserrat", sans-serif;
}
.doc-tab:hover {
    color: #4e2783;
    background: rgba(78,39,131,0.04);
}
.doc-tab.active {
    color: #4e2783;
    border-bottom-color: #4e2783;
}
.doc-tab svg {
    width: 16px;
    height: 16px;
}

/* Sub-tabs */
.doc-subtabs {
    display: flex;
    gap: 0;
    margin: 16px 0 0;
    border-bottom: 1px solid #eee;
}
.doc-subtab {
    border: none;
    background: none;
    color: #aaa;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: "Montserrat", sans-serif;
}
.doc-subtab:hover {
    color: #24a655;
}
.doc-subtab.active {
    color: #24a655;
    border-bottom-color: #24a655;
}

/* Content area */
.doc-content {
    position: relative;
    margin: 0;
}
.doc-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 10px 0;
}
.doc-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #4e2783;
    background: transparent;
    color: #4e2783;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 200px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Montserrat", sans-serif;
}
.doc-copy-btn:hover {
    background: rgba(78,39,131,0.06);
}
.doc-copy-btn.copied {
    background: #24a655;
    border-color: #24a655;
    color: #fff;
}
.doc-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: linear-gradient(135deg, #24a655, #4e2783);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 200px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Montserrat", sans-serif;
}
.doc-pdf-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.doc-pdf-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
.doc-html-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: linear-gradient(135deg, #e65100, #ff6d00);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 200px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Montserrat", sans-serif;
}
.doc-html-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Document text */
.doc-text {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px;
    max-height: 500px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}
.doc-text h2 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 30px 0 12px;
}
.doc-text h2:first-child {
    margin-top: 0;
}
.doc-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 8px;
}
.doc-text p {
    margin: 0 0 12px;
    text-align: left;
}
.doc-text ul {
    margin: 0 0 12px;
    padding-left: 24px;
}
.doc-text li {
    margin: 0 0 6px;
}
.doc-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    color: #555;
    background: #f0f0f0;
}

/* Input error */
.termos-input-error {
    border-color: red !important;
}

/* Responsive */
@media (max-width: 700px) {
    .doc-tab {
        font-size: 12px;
        padding: 12px 8px;
        gap: 4px;
    }
    .doc-tab svg {
        width: 14px;
        height: 14px;
    }
    .doc-subtab {
        font-size: 12px;
        padding: 8px 14px;
    }
    .doc-text {
        padding: 20px 16px;
        max-height: 400px;
        font-size: 13px;
    }
    .termos-check-group {
        flex-direction: column;
        gap: 10px;
    }
}
