/**
 * Estilos CSS para o shortcode LifterLMS Progress Archive Manager
 */

.llms-archive-shortcode {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: none !important;
    margin: 0 !important;
    padding: 20px !important;
    background: #f5f7fa;
    min-height: 100vh;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.llms-archive-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    margin: -20px -20px 30px -20px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    text-align: center;
}

.llms-archive-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

/* Navegação por abas */
.nav-tab-wrapper {
    margin: 0 0 30px 0;
    border: none;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-tab {
    border: none !important;
    background: transparent !important;
    color: #6c757d !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    margin: 0 !important;
    cursor: pointer;
    flex: 1;
    text-align: center;
    min-width: 150px;
}

.nav-tab:hover {
    background: #f8f9fa !important;
    color: #495057 !important;
    transform: translateY(-1px);
}

.nav-tab-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Conteúdo das abas */
.tab-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: none;
    overflow: hidden;
    width: 100%;
    max-width: none;
    padding: 0;
    min-height: 400px;
}

/* Cards */
.card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
    margin: 0;
    width: 100%;
    max-width: none;
}

.card h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.card h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Formulários */
.form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.form-table th {
    padding: 15px 20px 15px 0;
    text-align: left;
    vertical-align: top;
    font-weight: 600;
    color: #2c3e50;
    width: 200px;
}

.form-table td {
    padding: 15px 0;
    vertical-align: top;
}

.form-table input[type="text"],
.form-table input[type="number"],
.form-table input[type="email"],
.form-table select,
.form-table textarea {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-table input:focus,
.form-table textarea:focus,
.form-table select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-table .description {
    color: #6c757d;
    font-size: 13px;
    margin-top: 5px;
}

/* Botões */
.button {
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    height: auto !important;
    line-height: 1.4 !important;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.button:hover {
    text-decoration: none !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

.button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.button-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

.button-secondary {
    background: #6c757d !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3) !important;
}

.button-secondary:hover {
    background: #5a6268 !important;
    transform: translateY(-2px) !important;
}

.button-large {
    padding: 15px 30px !important;
    font-size: 16px !important;
}

/* Notificações */
.notice {
    padding: 12px 15px;
    margin: 15px 0;
    border-left: 4px solid #007cba;
    background: #f8f9fa;
    border-radius: 4px;
}

.notice-success {
    border-left-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.notice-error {
    border-left-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.notice-warning {
    border-left-color: #ffc107;
    background: #fff3cd;
    color: #856404;
}

.notice-info {
    border-left-color: #17a2b8;
    background: #d1ecf1;
    color: #0c5460;
}

/* Tabelas de dados */
.widefat {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.widefat th,
.widefat td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.widefat th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.widefat tr:hover {
    background: #f8f9fa;
}

/* Progress bars */
.progress-bar {
    background: #e9ecef;
    border-radius: 4px;
    height: 20px;
    overflow: hidden;
    margin: 5px 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 0.3s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    .llms-archive-shortcode {
        margin: 10px;
        border-radius: 4px;
    }
    
    .nav-tab-wrapper {
        flex-direction: column;
    }
    
    .nav-tab {
        flex: none;
        min-width: auto;
        border-bottom: 1px solid #dee2e6;
    }
    
    .nav-tab-active {
        border-bottom-color: #007cba;
    }
    
    .form-table {
        display: block;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
    
    .form-table th {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .form-table input[type="text"],
    .form-table input[type="number"],
    .form-table input[type="email"],
    .form-table select,
    .form-table textarea {
        max-width: 100%;
    }
    
    .button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .card {
        padding: 15px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content > div {
    animation: fadeIn 0.3s ease-in-out;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Container de filtros com estilo similar ao painel existente */
.filters-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: none;
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
}

.filters-form {
    padding: 30px;
}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 250px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-input,
.filter-select {
    width: 100% !important;
    max-width: 400px !important;
    padding: 12px 15px !important;
    border: 2px solid #e0e6ed !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
    box-sizing: border-box;
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-input:focus,
.filter-select:focus {
    border-color: #007cba !important;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15) !important;
    transform: translateY(-1px);
}

/* Área de ações dos filtros */
.filter-actions {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f8f9fa;
    display: flex;
    gap: 10px;
}

.search-btn-primary,
.clear-filters-btn {
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    height: auto !important;
    line-height: 1.4 !important;
    display: inline-block;
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3) !important;
}

.search-btn-primary:hover {
    text-decoration: none !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 124, 186, 0.4) !important;
}

.clear-filters-btn {
    background: #6c757d !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3) !important;
}

.clear-filters-btn:hover {
    background: #5a6268 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}

/* Cabeçalho do painel de estudantes */
.students-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.students-panel-header .panel-title h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.students-panel-header .students-count {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

/* Lista de arquivos */
.archive-list {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.archive-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.archive-row:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.archive-student {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.archive-student .student-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.archive-student .student-email {
    color: #6c757d;
    font-size: 12px;
}

.archive-student .company-info,
.archive-student .branch-info {
    color: #495057;
    font-size: 12px;
    padding: 2px 6px;
    background: #e9ecef;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
}

.archive-course {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.archive-course .course-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.archive-course .course-icon {
    margin-right: 5px;
}

.archive-course .enrollment-status,
.archive-course .enrollment-date {
    color: #6c757d;
    font-size: 12px;
}

.archive-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.archive-info div {
    font-size: 12px;
    color: #6c757d;
}

.archive-info .batch-id {
    font-weight: 600;
    color: #495057;
}

.archive-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para informações da empresa */
.company-info {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.company-name {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    margin-bottom: 4px;
}

.subsidiary-name {
    font-weight: 500;
    color: #6c757d;
    font-size: 13px;
}

/* Responsividade */
@media (max-width: 1200px) {
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .archive-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-input,
    .filter-select {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .students-panel-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .filters-form {
        padding: 20px;
    }
    
    .filter-row {
        margin-bottom: 15px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-input,
    .filter-select {
        max-width: 100% !important;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    
    .search-btn-primary,
    .clear-filters-btn {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
    
    .archive-row {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .filters-container {
        margin-bottom: 15px;
    }
}

/* Melhorias para impressão */
@media print {
    .llms-archive-shortcode {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .nav-tab-wrapper {
        display: none;
    }
    
    .tab-content {
        padding: 0;
    }
    
    .button {
        display: none;
    }
    
    .expanded-filters {
        display: none;
    }
} 