/* Frontend styles for Star Citizen Medical Corps */
.scmc-frontend-table {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Ensure the table doesn't break the page layout */
.scmc-frontend-table * {
    box-sizing: border-box;
}

/* Override theme styles that might interfere */
.scmc-frontend-table table {
    margin-bottom: 0 !important;
    border: none !important;
}

.scmc-frontend-table th,
.scmc-frontend-table td {
    border: none !important;
}

/* Responsive improvements */
@media (max-width: 1024px) {
    .scmc-table-container {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .scmc-table-header {
        margin: 0 -15px;
        border-radius: 0;
    }
}

@media (max-width: 640px) {
    .scmc-table th:nth-child(n+5),
    .scmc-table td:nth-child(n+5) {
        display: none;
    }
    
    .scmc-table-header h2 {
        font-size: 20px;
    }
    
    .scmc-table-header p {
        font-size: 14px;
    }
}

/* Loading animation */
.loading-spinner {
    position: relative;
}

.loading-spinner::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

/* Scroll indicator for horizontal scroll */
.table-responsive.scrolled::before {
    content: '← Faites défiler pour voir plus →';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 0 0 8px 8px;
    font-size: 12px;
    z-index: 10;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}