/**
 * Admin: support tab (moved from an inline style).
 */
/* Estilos padrão Dotes para aba de suporte */
.suporte-container {
    max-width: 1200px;
}

.dotes-subtabs {    
    margin: 20px 10px;
}

.dotes-subtabs h3{
    border-bottom:1px solid #EEE;
    padding-bottom:20px;
    text-transform: uppercase;
    margin-top:10px;
}

.dotes-subtabs-nav {    
    display: flex;    
    list-style: none;    
    margin: 0;    
    padding: 0;    
    border-bottom: 1px solid #ddd;
}

.dotes-subtabs-nav li {    
    margin: 0;    
    padding: 0;
}

.dotes-subtabs-nav a {     
    letter-spacing:.4px; 
    display: block;
    box-shadow: none;
    z-index: 1!important;
    text-transform:uppercase;
    transition:.1s;
    font-weight:bold;   
    padding: 10px 20px;
    top:1px;
    position: relative; 
    box-shadow:0px 1px 5px #00000010 inset;   
    text-decoration: none;   
    color:#888;   
    border: 1px solid #ddd; 
    margin:0 5px;  
    border-bottom:none;    
    border-radius: 3px 3px 0 0;        
    background: #f1f1f1;
}

.dotes-subtabs-nav a:hover {    
    background:#FFF; 
}

.dotes-subtabs-nav a.active {    
    background-color: #fff;    
    color: #23282d;
    box-shadow:none;  
    border-color: #ddd #ddd transparent #ddd;    
    font-weight: bold;
    padding: 13px 22px;
    top:-5px;
    margin-bottom:-8px;
}

.subtab-content { 
    box-shadow:0 0 10px #eeeeee;   
    display: none;    
    padding: 20px;    
    border: 1px solid #ddd;   
    border-top: none;    
    background-color: #fff;
    border-radius: 5px;
    border-top-left-radius: 0;
}

.subtab-content.active {    
    display: block;
}

.suporte-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.suporte-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 8px;
}

.suporte-section h3 i {
    color: #25d366;
    margin-right: 8px;
}

.teste-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.teste-buttons .button {
    min-width: 150px;
}

.suporte-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.suporte-link-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.suporte-link-item h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.suporte-link-item h4 i {
    color: #25d366;
    margin-right: 8px;
}

.suporte-link-item p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.faq-container {
    margin-top: 15px;
}

.faq-item {
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    margin: 0;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #e1e1e1;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question i {
    color: #25d366;
    margin-right: 10px;
    transition: transform 0.2s;
}

.faq-item.active .faq-question i {
    transform: rotate(90deg);
}

.faq-answer {
    display: none;
    padding: 15px 20px;
    background: #fff;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

#resultado-testes {
    font-family: monospace;
    font-size: 13px;
}

#resultado-testes.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#resultado-testes.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#resultado-testes.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsividade */
@media (max-width: 768px) {
    .suporte-links {
        grid-template-columns: 1fr;
    }

    .teste-buttons {
        flex-direction: column;
    }

    .teste-buttons .button {
        min-width: auto;
    }
}

/* Backup/Import Styles */
.backup-import-container {
    display: grid;
    gap: 30px;
    margin-top: 20px;
}

.backup-section, .import-section {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
}

.backup-section h4, .import-section h4 {
    margin-top: 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.count-badge {
    background: #3b82f6;
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.backup-section label, .import-section label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
}

.backup-section input[type="checkbox"], .import-section input[type="radio"] {
    margin-right: 8px;
}

.import-warning {
    margin: 20px 0;
}

.import-warning h4 {
    margin-top: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

#export-progress, #import-progress {
    margin-top: 15px;
    padding: 15px;
    background: #f0f6ff;
    border: 1px solid #bae6fd;
    border-radius: 5px;
}

#export-progress .notice, #import-progress .notice, #import-status .notice {
    margin: 0;
}

#import_file {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.button.button-primary#export-data-btn {
    background: #059669;
    border-color: #047857;
}

.button.button-primary#export-data-btn:hover {
    background: #047857;
    border-color: #065f46;
}

.button.button-secondary#import-data-btn {
    background: #0ea5e9;
    border-color: #0284c7;
    color: white;
}

.button.button-secondary#import-data-btn:hover {
    background: #0284c7;
    border-color: #0369a1;
}

.button.button-secondary#import-data-btn:disabled {
    background: #94a3b8;
    border-color: #64748b;
    color: #475569;
}

@media (min-width: 768px) {
    .backup-import-container {
        grid-template-columns: 1fr 1fr;
    }
}

.faq-group {
    margin: 24px 0 10px;
    color: #50575e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.faq-group:first-child {
    margin-top: 0;
}

.faq-more {
    margin: 16px 0 0;
}
