/**
 * ATC Mural de Aprovados - Frontend CSS
 * Versão: 2.0.0
 */

/* CSS Variables */
:root {
    --atc-primary-color: #2563eb;
    --atc-secondary-color: #1e40af;
    --atc-text-color: #000000;
    --atc-background-color: #ffffff;
    --atc-border-color: #e5e7eb;
    --atc-shadow-color: rgba(0, 0, 0, 0.1);
    --atc-hover-color: #000000;
    --atc-success-color: #10b981;
    --atc-error-color: #ef4444;
    --atc-warning-color: #f59e0b;
    --atc-info-color: #3b82f6;
}

/* Base Styles */
.atc-mural-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Grid and List Views */
.atc-testimonials-container {
    display: grid !important;
    gap: 20px;
    margin-bottom: 30px;
}

.atc-testimonials-container.atc-grid-view {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    align-items: start;
    width: 100%;
}

/* Forçar o grid a funcionar corretamente */
.atc-testimonials-container.atc-grid-view {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-gap: 20px !important;
}

/* Garantir que o grid funcione mesmo com CSS conflitante */
.atc-testimonials-container.atc-grid-view,
div.atc-testimonials-container.atc-grid-view {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-gap: 20px !important;
}
small {
    font-size: 14px;
}
/* Regras específicas para garantir o funcionamento */
.atc-testimonials-container[class*="atc-grid-view"] {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-gap: 20px !important;
}

/* Forçar grid em qualquer container com a classe */
[class*="atc-grid-view"] {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-gap: 20px !important;
}

/* Regra mais específica para garantir funcionamento */
div.atc-testimonials-container.atc-grid-view,
.atc-testimonials-container.atc-grid-view {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-gap: 20px !important;
    width: 100% !important;
    max-width: 1200px !important;
}

/* Regra de fallback para garantir funcionamento */
.atc-testimonials-container[class*="grid"] {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-gap: 20px !important;
}

/* Classe adicional para garantir grid */
.atc-grid-layout {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-gap: 20px !important;
}

.atc-testimonials-container.atc-list-view {
    grid-template-columns: 1fr;
}

/* Testimonial Cards - New Layout */
.atc-testimonial-card {
    background: var(--atc-background-color);
    border: 1px solid var(--atc-border-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    width: 100%;
    height: 140px; /* Altura reduzida sem comentário */
    min-height: 140px;
    max-height: 140px;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.atc-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--atc-primary-color);
}

/* Garantir que os cards tenham altura consistente no grid */
.atc-testimonials-container.atc-grid-view .atc-testimonial-card {
    height: fit-content;
    min-height: 160px;
    padding: 10px;

/* Card Image Container - Left Side */
.atc-testimonial-photo {
    width: 100px;
    min-width: 100px;
    height: 140px;
    margin-right: 20px;
    margin-bottom: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.atc-testimonial-card:hover .atc-testimonial-photo {
    transform: scale(1.05);
}

.atc-testimonial-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 9/16; /* Formato Instagram Stories */
}

/* Default Avatar */
.atc-testimonial-photo .default-avatar {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 48px;
    border-radius: 10px;
}

/* Card Content - Right Side */
.atc-testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    min-height: 140px;
}

/* Card Content Structure */
.atc-testimonial-content-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.atc-testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Testimonial ranking */
.atc-testimonial-ranking {
    font-size: 12px;
    font-weight: 400;
    color: var(--atc-text-color);
    margin-bottom: 8px;
}

.atc-testimonial-ranking strong {
    color: var(--atc-primary-color);
}

/* Student Name */
.atc-testimonial-student {
    font-size: 16px;
    font-weight: 600;
    color: var(--atc-primary-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.atc-testimonial-student strong {
    color: var(--atc-primary-color);
}

/* Legacy support for old class name */
.atc-testimonial-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--atc-secondary-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.atc-testimonial-name strong {
    color: var(--atc-primary-color);
}

/* Course Name */
.atc-testimonial-course {
    font-size: 14px;
    color: var(--atc-text-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.atc-testimonial-course strong {
    color: var(--atc-primary-color);
}

/* Button Container */
.atc-testimonial-button-container {
    margin-top: auto;
    padding-top: 10px;
}

.atc-testimonial-button {
    background: var(--atc-primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 150px;
}

.atc-testimonial-button:hover {
    background: #000;
}

/* Details button */
.atc-details-btn {
    background: var(--atc-primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 4px;
    order: 4;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.atc-details-btn:hover {
    background: #000;
}

.atc-details-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.atc-modal {
    display: none !important;
    position: fixed !important;
    z-index: 9 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Modal quando está visível */
.atc-modal.atc-modal-show {
    display: flex !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Prevenir scroll do body quando modal está aberto */
body.atc-modal-open {
    overflow: hidden !important;
}

.atc-modal-content {
    background-color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 16px !important;
    width: 720px !important;
    max-width: 720px !important;
    height: 500px !important;
    max-height: 500px !important;
    min-height: 500px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15) !important;
    animation: modalSlideIn 0.3s ease-out !important;
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.atc-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 25px !important;
    border-bottom: 2px solid #e5e7eb !important;
    background: #ffffff !important;
    border-radius: 16px 16px 0 0 !important;
    flex-shrink: 0 !important;
    height: 70px !important;
    max-height: 70px !important;
}

.atc-modal-header h2 {
    margin: 0 !important;
    color: #1f2937 !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
}

.atc-modal-close {
    background: #f3f4f6 !important;
    border: 2px solid #e5e7eb !important;
    font-size: 20px !important;
    cursor: pointer !important;
    color: #6b7280 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.atc-modal-close:hover {
    background: #e5e7eb !important;
    color: #374151 !important;
    border-color: #d1d5db !important;
}

.atc-modal-body {
    padding: 20px !important;
    overflow-y: auto !important;
    flex: 1 !important;
    background: #ffffff !important;
    height: calc(500px - 140px) !important;
    max-height: calc(500px - 140px) !important;
}

/* Modal content layout */
.atc-modal-details {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
    background: #ffffff !important;
    padding: 0 !important;
    height: 100% !important;
}

.atc-modal-photo {
    flex: 0 0 150px !important;
    width: 150px !important;
    min-width: 150px !important;
    height: 180px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #e5e7eb !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.atc-modal-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.atc-modal-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    background: #ffffff !important;
    height: 100% !important;
    overflow-y: auto !important;
}

.atc-modal-comment-section {
    order: 1 !important;
    background: #ffffff !important;
}

.atc-modal-comment {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
    padding: 15px !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    border-left: 4px solid #3b82f6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 10px !important;
}

.atc-modal-student-info {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: #ffffff !important;
    padding: 15px !important;
    border-radius: 8px !important;
    border: 2px solid #e5e7eb !important;
}

.atc-modal-ranking {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #3b82f6 !important;
}

.atc-modal-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
}

.atc-modal-course {
    font-size: 14px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

.atc-testimonial-modal-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #ffffff !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
    white-space: nowrap !important;
    margin-top: 5px !important;
}

.atc-testimonial-modal-badge .dashicons {
    font-size: 10px !important;
    width: 10px !important;
    height: 10px !important;
}

/* Modal de detalhes do depoimento - Novo layout */
.atc-testimonial-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.atc-testimonial-modal-layout {
    display: flex;
    gap: 20px;
    flex: 1;
    margin-bottom: 0px;
}

.atc-testimonial-modal-left {
    flex: 0 0 200px;
}

.atc-testimonial-modal-photo {
    width: 200px;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atc-testimonial-modal-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.atc-testimonial-modal-default-avatar {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 48px;
    border-radius: 10px;
}

.atc-testimonial-modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.atc-testimonial-modal-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.atc-testimonial-modal-info {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-top: auto;
}

.atc-testimonial-modal-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--atc-primary-color);
    margin-bottom: 8px;
}

.atc-testimonial-modal-course {
    font-size: 16px;
    color: #666;
    font-style: italic;
    margin-bottom: 0;
}

/* Default avatar styling */
.default-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #999;
}

.default-avatar .dashicons {
    font-size: 40px;
}

.atc-modal-footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 15px !important;
    padding: 20px 25px !important;
    border-top: 2px solid #e5e7eb !important;
    background: #ffffff !important;
    border-radius: 0 0 16px 16px !important;
    flex-shrink: 0 !important;
    height: 70px !important;
    max-height: 70px !important;
}

.atc-modal-close-btn {
    background: #374151 !important;
    color: white !important;
    border: 2px solid #374151 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    min-width: 100px !important;
}

.atc-modal-close-btn:hover {
    background: #1f2937 !important;
    border-color: #1f2937 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3) !important;
}

/* Animação de entrada do modal */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Garantir que o modal seja sempre visível quando aberto */
.atc-modal[style*="display: flex"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Estilos específicos para garantir funcionamento do modal */
#atcTestimonialDetailModal,
#atcTestimonialRegistrationModal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 9 !important;
    align-items: center !important;
    justify-content: center !important;
}

#atcTestimonialDetailModal.atc-modal-show,
#atcTestimonialRegistrationModal.atc-modal-show {
    display: flex !important;
    opacity: 1 !important;
}

#atcTestimonialDetailModal .atc-modal-content,
#atcTestimonialRegistrationModal .atc-modal-content {
    background-color: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 16px !important;
    width: 720px !important;
    max-width: 720px !important;
    height: 500px !important;
    max-height: 500px !important;
    min-height: 500px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
    z-index: 100 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: 0 !important;
}

/* Registration Modal Form Styles */
.atc-form-group {
    margin-bottom: 20px;
}

/* Container de seleção de mídia com 2 colunas */
.atc-media-selection-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    transition: all 0.3s ease;
}

/* Estado quando não há arquivo selecionado */
.atc-media-selection-container.no-file {
    display: flex;
}

.atc-media-selection-container.no-file .atc-media-preview-column {
    display: none;
}

/* Estado quando há arquivo selecionado */
.atc-media-selection-container.has-file {
    grid-template-columns: 1fr 0fr;
}

.atc-media-selection-container.has-file .atc-media-button-column {
    display: none;
}

.atc-media-preview-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.atc-media-button-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Estilização personalizada para input de arquivo */
.atc-form-group input[type="file"] {
    position: relative;
    text-align: center;
    padding: 50px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
    min-height: 60px;
    width: 100%;
    max-width: 100%;
}

.atc-form-group input[type="file"]:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.atc-form-group input[type="file"]::before {
    content: "Selecionar Foto";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: black;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 20px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    z-index: 5;
    white-space: nowrap;
}

.atc-form-group input[type="file"]:hover::before {
    background: #1d4ed8;
    transform: translate(-50%, -50%) scale(1.02);
}

.atc-form-group input[type="file"]::-webkit-file-upload-button {
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

.atc-form-group input[type="file"]::file-selector-button {
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}



/* Garantir que o texto padrão do input seja invisível */
.atc-form-group input[type="file"] {
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}



/* Container do preview do arquivo */
.atc-file-preview-container {
    display: none;
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: 100px;
    width: 100%;
    max-width: 100%;
}

.atc-file-preview-container.show {
    display: block !important;
}

/* Preview da imagem */
.atc-file-preview {
    position: relative;
    display: inline-block;
    max-width: 200px;
    max-height: 150px;
    border-radius: 5px;
    overflow: unset;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 0px;
}

.atc-file-preview img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 200px;
    max-height: 150px;
    border-radius:5px;
}

/* Botão de remover arquivo */
.atc-remove-file-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.atc-remove-file-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* Nome do arquivo */
.atc-file-name {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
    word-break: break-word;
    max-width: 200px;
    text-align: center;
    display: none;
}

.atc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.atc-form-group input,
.atc-form-group textarea,
.atc-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
    line-height: 1.5;
    min-height: 48px;
}

.atc-form-group input:focus,
.atc-form-group textarea:focus,
.atc-form-group select:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.atc-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.atc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.atc-photo-upload {
    display: flex;
    gap: 10px;
    align-items: center;
}

.atc-photo-upload input {
    flex: 1;
}

.atc-photo-upload button {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Button Styles */
.atc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.atc-btn-primary {
    background-color: #000;
    color: white;
}

.atc-btn-primary:hover {
    background-color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.atc-btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.atc-btn-secondary:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.atc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.atc-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Estado de loading do botão */
.atc-btn-loading {
    cursor: not-allowed;
    opacity: 0.8;
}

.atc-btn-loading:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Animação de rotação para o ícone de loading */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .atc-testimonials-container.atc-grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .atc-testimonial-card {
        padding: 18px;
    }
    
    .atc-testimonial-photo {
        width: 90px;
        min-width: 90px;
        height: 130px;
    }
}

@media (max-width: 768px) {
    .atc-testimonials-container.atc-grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .atc-testimonial-card {
        padding: 15px;
    }
    
    .atc-testimonial-photo {
        width: 80px;
        min-width: 80px;
        height: 120px;
    }
    
    #atcTestimonialDetailModal .atc-modal-content,
    #atcTestimonialRegistrationModal .atc-modal-content {
        width: 95% !important;
        max-width: 95% !important;
        height: 90vh !important;
        max-height: 90vh !important;
    }
    
    .atc-modal-header,
    .atc-modal-body,
    .atc-modal-footer {
        padding: 20px;
    }
    
    .atc-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .atc-photo-upload {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Layout responsivo para seleção de mídia */
    .atc-media-selection-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .atc-media-selection-container.no-file,
    .atc-media-selection-container.has-file {
        display: flex;
    }
    
    .atc-media-selection-container.no-file .atc-media-preview-column,
    .atc-media-selection-container.has-file .atc-media-button-column {
        display: none;
    }
    
    .atc-media-preview-column,
    .atc-media-button-column {
        align-items: center;
    }
    
    .atc-modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .atc-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Modal de detalhes responsivo */
    .atc-testimonial-modal-layout {
        flex-direction: column;
        gap: 15px;
    }
    
    .atc-testimonial-modal-left {
        flex: none;
        text-align: center;
    }
    
    .atc-testimonial-modal-photo {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .atc-testimonial-modal-default-avatar {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .atc-testimonial-modal-right {
        flex: none;
    }
    
    .atc-testimonial-modal-info {
        padding: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .atc-testimonials-container.atc-grid-view {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .atc-testimonial-card {
        padding: 12px;
    }
    
    .atc-testimonial-photo {
        width: 70px;
        min-width: 70px;
        height: 100px;
    }
    
    .atc-testimonial-ranking {
        font-size: 1.3rem;
    }
    
    .atc-testimonial-name,
    .atc-testimonial-student {
        font-size: 1.1rem;
    }
    
    
    
    .atc-details-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    
    .atc-modal-header h2 {
        font-size: 1.3em;
    }
    
    .atc-form-group input,
    .atc-form-group textarea,
    .atc-form-group select {
        padding: 10px 12px;
    }
    
    /* Ajustes para seleção de mídia em mobile pequeno */
    .atc-media-selection-container {
        gap: 12px;
    }
    
    .atc-media-selection-container.no-file,
    .atc-media-selection-container.has-file {
        display: flex;
    }
    
    .atc-file-preview-container {
        min-height: 100px;
        padding: 12px;
    }
    
    /* Modal de detalhes responsivo para mobile pequeno */
    .atc-testimonial-modal-photo {
        width: 120px;
        height: 120px;
    }
    
    .atc-testimonial-modal-default-avatar {
        width: 120px;
        height: 120px;
    }
    
    .atc-testimonial-modal-info {
        padding: 12px;
    }
    
    .atc-testimonial-modal-name {
        font-size: 16px;
    }
    
    .atc-testimonial-modal-course {
        font-size: 14px;
    }
}

/* Loading States */
.atc-loading {
    position: relative;
    pointer-events: none;
}

.atc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Animations */
.atc-testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Animations */
.atc-modal.atc-modal-show {
    opacity: 1;
}

.atc-modal.atc-modal-show .atc-modal-content {
    animation: modalSlideIn 0.3s ease;
}


.atc-modal.atc-modal-hide {
    opacity: 0;
}

.atc-modal.atc-modal-hide .atc-modal-content {
    animation: modalSlideOut 0.3s ease;
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* Accessibility */
.atc-details-btn:focus,
.atc-modal-close:focus,
.atc-modal-close-btn:focus {
    outline: 2px solid var(--atc-primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --atc-border-color: #000000;
        --atc-shadow-color: rgba(0, 0, 0, 0.5);
    }
    
    .atc-testimonial-card {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .atc-testimonial-card,
    .atc-modal-content {
        transition: none;
        animation: none;
    }
    
    .atc-testimonial-card:hover {
        transform: none;
    }
    
    .atc-details-btn:hover {
        transform: none;
    }
}

/* Regras específicas para o modal de edição */
#atcTestimonialEditModal .atc-media-selection-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    transition: all 0.3s ease;
}

#atcTestimonialEditModal .atc-media-selection-container.no-file {
    display: flex;
}

#atcTestimonialEditModal .atc-media-selection-container.no-file .atc-media-preview-column {
    display: none;
}

#atcTestimonialEditModal .atc-media-selection-container.has-file {
    grid-template-columns: 1fr 0fr;
}

#atcTestimonialEditModal .atc-media-selection-container.has-file .atc-media-button-column {
    display: none;
}

/* Estilos para Depoimentos Destacados */
.atc-testimonial-card.featured {
    position: relative;
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2) !important;
    background: #ffffff !important;
}

/* Badge de destaque agora está no footer do card */

.atc-testimonial-card.featured .atc-testimonial-student {
    color: var(--atc-primary-color);
    font-weight: 600;
    font-size: 16px;
}

.atc-testimonial-card.featured .atc-testimonial-course {
    color: var(--atc-primary-color);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

/* Animação sutil para depoimentos destacados */
.atc-testimonial-card.featured {
    animation: featuredPulse 3s ease-in-out infinite;
}

@keyframes featuredPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 6px 25px rgba(59, 130, 246, 0.3);
    }
}

/* Badge de destaque sobre a imagem */
.atc-testimonial-photo {
    position: relative;
}

.atc-badge-overlay {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 10 !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #ffffff !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4) !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.atc-badge-overlay .dashicons {
    font-size: 8px !important;
    width: 8px !important;
    height: 8px !important;
    margin-right: 2px !important;
}

/* Badge de destaque responsivo já está no footer */

/* ===== BADGE DE DESTAQUE NO MODAL DE DETALHES ===== */
.atc-detail-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.atc-detail-title {
    margin: 0;
    flex: 1;
}

.atc-detail-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.atc-detail-featured-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #ffffff;
}

.atc-detail-featured-badge .dashicons:before {
    font-size: 14px;
}

/* Responsivo para badge no modal */
@media (max-width: 768px) {
    .atc-detail-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .atc-detail-featured-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* ===== LAYOUT DOS CARDS - ESTRUTURA ORGANIZADA ===== */
.atc-testimonial-content {
    display: flex
    ;
        flex-direction: column;
        flex: 1;
        height: 100%;
        justify-content: center;
        padding-left: 0px;
        align-items: center;
        gap:5px;
}

.atc-testimonial-student {
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

.atc-testimonial-course {
    color: #2e3033;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* ===== BADGE DE DESTAQUE NOS CARDS ===== */
.atc-testimonial-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 2px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #ffffff !important;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
    margin: 0;
    position: relative;
    z-index: 10;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1;
}

.atc-testimonial-badge .dashicons {
    font-size: 8px !important;
    width: 8px !important;
    height: 8px !important;
    color: #ffffff !important;
}

.atc-testimonial-badge .dashicons:before {
    font-size: 8px !important;
}

/* Forçar exibição do badge mesmo se houver conflitos CSS */
.atc-testimonial-card .atc-testimonial-badge {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #ffffff !important;
}

/* CSS específico para garantir exibição no grid */
.atc-testimonials-container .atc-testimonial-card .atc-testimonial-badge,
.atc-grid-view .atc-testimonial-card .atc-testimonial-badge {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #ffffff !important;
    margin: 0 0 10px 0 !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3) !important;
    white-space: nowrap !important;
    z-index: 10 !important;
}

/* Forçar ícone do dashicons */
.atc-testimonials-container .atc-testimonial-badge .dashicons,
.atc-grid-view .atc-testimonial-badge .dashicons {
    font-size: 10px !important;
    width: 10px !important;
    height: 10px !important;
    color: #ffffff !important;
}

.atc-testimonials-container .atc-testimonial-badge .dashicons:before,
.atc-grid-view .atc-testimonial-badge .dashicons:before {
    font-size: 10px !important;
}

.atc-details-btn {
    background: var(--atc-primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
}

.atc-details-btn:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.atc-details-btn .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* ===== MODAL DE DETALHES - ESTRUTURA ORGANIZADA ===== */
.atc-testimonial-modal-text {
    flex: 1;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
}

.atc-testimonial-modal-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.atc-testimonial-modal-student {
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
    font-size: 16px;
    line-height: 1.3;
}

.atc-testimonial-modal-course {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Badge de destaque no modal */
.atc-testimonial-modal-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 8px;
}

.atc-testimonial-modal-badge .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    color: #ffffff !important;
}

.atc-testimonial-modal-badge .dashicons:before {
    font-size: 14px !important;
}

/* Responsivo para novo layout */
@media (max-width: 768px) {
    .atc-testimonial-card {
        height: 120px; /* Altura menor em mobile sem comentário */
        min-height: 120px;
        max-height: 120px;
        padding: 15px;
    }
    
    .atc-testimonial-student {
        font-size: 14px;
    }
    
    .atc-testimonial-course {
        font-size: 12px;
    }
    
    .atc-details-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .atc-badge-overlay {
        top: 6px !important;
        right: 6px !important;
        padding: 3px 6px !important;
        font-size: 8px !important;
    }
    
    .atc-badge-overlay .dashicons {
        font-size: 7px !important;
        width: 7px !important;
        height: 7px !important;
    }
    
    /* Badge responsivo nos cards */
    .atc-testimonial-badge {
        display: inline-flex !important;
        align-items: center;
        gap: 2px;
        background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
        color: #ffffff !important;
        padding: 5px 8px;
        border-radius: 8px;
        font-size: 9px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        box-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
        white-space: nowrap;
        margin: 5px 0;
        position: relative;
        z-index: 10;
        visibility: visible !important;
        opacity: 1 !important;
        line-height: 1;
    }
    
    .atc-testimonial-badge .dashicons {
        font-size: 8px !important;
        width: 8px !important;
        height: 8px !important;
    }
    
    .atc-testimonial-modal-text {
        font-size: 15px;
    }
    
    .atc-testimonial-modal-student {
        font-size: 15px;
    }
    
    .atc-testimonial-modal-course {
        font-size: 13px;
    }
    
    /* Badge responsivo no modal */
    .atc-testimonial-modal-badge {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }
    
    .atc-testimonial-modal-badge .dashicons {
        font-size: 11px !important;
        width: 11px !important;
        height: 11px !important;
    }
}
}