* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    min-height: 100vh;
    margin: 0;
}

/* Dashboard Layout */
.dashboard-body {
    background: #0f0f0f;
    color: #e4e4e7;
    padding: 0;
    display: grid;
    grid-template-areas: 
        "header header"
        "sidebar main";
    grid-template-columns: 250px 1fr;
    grid-template-rows: 60px 1fr;
    min-height: 100vh;
}

/* Header fin */
.top-header {
    grid-area: header;
    background: #18181b;
    border-bottom: 1px solid #27272a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
}

.header-left .logo {
    font-size: 20px;
    font-weight: 600;
    color: #fafafa;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px; 
}

.user-name {
    font-size: 14px;
    color: #a1a1aa;
}

/* Sidebar */
.sidebar {
    grid-area: sidebar;
    background: #18181b;
    border-right: 1px solid #27272a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #a1a1aa;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.nav-item:hover {
    background: #27272a;
    color: #fafafa;
}

.nav-item.active {
    background: #27272a;
    color: #fafafa;
}

.nav-icon {
    font-size: 18px;
}

.nav-label {
    font-weight: 500;
}

.nav-subitem {
    padding-left: 32px !important;
    font-size: 13px !important;
    border-left: 2px solid #374151;
}

.nav-subitem:hover {
    border-left-color: #60a5fa;
    background: #1f2937;
}

.nav-subitem.active {
    border-left-color: #60a5fa;
    background: #1f2937;
}

.channel-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #374151;
}

/* Styles pour la page Vidéos - Vue tableau */
.videos-filter {
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    border: 1px solid #334155;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 14px;
}

.channel-select {
    padding: 8px 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 14px;
    min-width: 200px;
}

.channel-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* En-têtes du tableau */
.videos-table-header {
    display: grid;
    grid-template-columns: 230px 1fr 150px 200px 120px;
    gap: 16px;
    padding: 12px 16px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    font-weight: 600;
    color: #e2e8f0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-thumbnail { text-align: center; }

.header-stats { text-align: center; }
.header-actions { text-align: center; }

/* Lignes du tableau */
.video-row {
    display: grid;
    grid-template-columns: 1fr 150px 200px 120px;
    gap: 16px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 8px;
    margin-bottom: 8px;
    align-items: center;
    transition: all 0.2s ease;
}


.video-thumbnail {
    width: 120px; /* Réduit pour s'adapter au nouveau layout */
    height: 67px; /* Maintient le ratio 16:9 */
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #374151;
    flex-shrink: 0;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.video-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    align-items: flex-start;
    text-align: left;
}

.video-title {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-channel {
    color: #94a3b8;
    font-size: 12px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.channel-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #374151;
}

.video-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: #64748b;
    text-align: center;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.video-actions {
    display: flex;
    justify-content: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
}

.videos-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.videos-loading p {
    font-size: 16px;
    margin: 0;
}

.sidebar-footer {
    padding: 0 12px;
}

.sidebar-footer .logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: transparent;
    color: #ef4444;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-footer .logout-btn:hover {
    background: #27272a;
    border-color: #ef4444;
}

/* Main Content */
.main-content {
    grid-area: main;
    padding: 32px;
    overflow-y: auto;
}

.dashboard-actions {
    margin-bottom: 32px;
}

.action-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #a1a1aa;
}

.videos-container {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 24px;
}

.videos-container h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fafafa;
    text-align: left;
}

.videos-table {
    width: 100%;
    border-collapse: collapse;
}

.videos-table thead {
    border-bottom: 1px solid #27272a;
}

.videos-table th {
    text-align: left;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #a1a1aa;
}

.videos-table td {
    padding: 12px;
    border-bottom: 1px solid #27272a;
    font-size: 14px;
    color: #e4e4e7;
}

.videos-table tbody tr:hover {
    background: #27272a;
}

.stats-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stats-btn:hover {
    background: #2563eb;
}

.error-container {
    background: #7f1d1d;
    border: 1px solid #991b1b;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.error-message {
    color: #fca5a5;
    font-size: 14px;
}

/* Admin Page Styles */
.admin-page {
    display: none;
}

.admin-page.active {
    display: block;
}

.admin-page h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fafafa;
    text-align: left;
}

.collections-container {
    display: grid;
    gap: 16px;
}

.collection-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.collection-card:hover {
    border-color: #3f3f46;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.collection-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fafafa;
    margin: 0;
}

.collection-count {
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.collection-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #a1a1aa;
}

.stat-item {
    display: inline-block;
}

.collection-actions {
    margin-top: 12px;
}

.action-btn-small {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn-small:hover {
    background: #2563eb;
}

.collection-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #27272a;
}

.collection-loading {
    padding: 20px;
    text-align: center;
    color: #a1a1aa;
}

.documents-table-container {
    overflow-x: auto;
    margin-top: 16px;
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.documents-table th {
    background: #27272a;
    color: #fafafa;
    padding: 10px;
    text-align: left;
    font-weight: 500;
    border-bottom: 2px solid #3f3f46;
    position: sticky;
    top: 0;
}

.documents-table td {
    padding: 10px;
    border-bottom: 1px solid #27272a;
    color: #e4e4e7;
    word-break: break-word;
    max-width: 300px;
}

.documents-table tbody tr:hover {
    background: #27272a;
}

.documents-table pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.container {
    max-width: 600px;
    margin: 100px auto 0;
    background-color: #2a2a2a;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
    border: 1px solid #404040;
}

header h1 {
    font-size: 3em;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255,107,53,0.3);
}

.login-section {
    text-align: center;
}

.login-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(45deg, #4285f4, #34a853);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
    background: linear-gradient(45deg, #3367d6, #2d8f47);
}

.login-button:active {
    transform: translateY(0);
}

.google-icon {
    font-size: 1.3em;
}

.user-info {
    margin-top: 20px;
    padding: 20px;
    background-color: #1e3a1e;
    border: 2px solid #4caf50;
    border-radius: 8px;
}

.user-info p {
    margin: 0 0 10px 0;
    color: #e0e0e0;
    font-size: 1.1em;
}

.dashboard-link {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.dashboard-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    background: linear-gradient(45deg, #e55a2b, #e88516);
}

.logout-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.logout-button:hover:not(:disabled) {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.logout-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Footer flottant Admin */
.admin-footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    font-size: 18px;
}

.admin-link:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #e55a2b, #e88516);
}

.admin-link:active {
    transform: scale(0.95) translateY(0);
}

.admin-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.3));
}

/* ============ INTERFACE MODULAIRE YOUTUBE ============ */

/* Section de bienvenue */
.welcome-section {
    background: linear-gradient(135deg, rgba(24, 24, 40, 0.8), rgba(40, 40, 60, 0.8));
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.welcome-section h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section p {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* États de connexion YouTube */
.youtube-connection {
    max-width: 600px;
    margin: 0 auto;
}

.connection-status {
    text-align: center;
    padding: 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.connection-status h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #f1f5f9;
}

.connection-status p {
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.5;
}

.connection-note {
    font-size: 14px;
    color: #64748b;
    font-style: italic;
}

/* Boutons de connexion */
.connect-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #e55a2b, #e88516);
}

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

/* Boutons de déconnexion */
.disconnect-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

.disconnect-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

/* Boutons de retry */
.retry-btn {
    background: linear-gradient(135deg, #64748b, #94a3b8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(100, 116, 139, 0.3);
}

.retry-btn:hover {
    background: linear-gradient(135deg, #475569, #64748b);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.4);
}

/* État d'erreur */
.error-status {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.error-status h3 {
    color: #fca5a5;
}

.error-status p {
    color: #fecaca;
}

/* Spinner de chargement */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #60a5fa;
    animation: spin 1s ease-in-out infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header de chaîne pour dashboard_channel */
.channel-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.channel-info-display {
    display: flex;
    gap: 20px;
    align-items: center;
}

.channel-header-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #3b82f6;
    flex-shrink: 0;
}

.channel-details {
    flex: 1;
}

.channel-details h1 {
    color: #e2e8f0;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.channel-details p {
    color: #94a3b8;
    font-size: 16px;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.channel-stats {
    display: flex;
    gap: 24px;
}

.channel-stats span {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
}

/* Chaînes connectées */
.connected-channel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.connected-channel:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.channel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.channel-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.channel-stats {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.connection-date {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

/* Actions des chaînes connectées */
.connected-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ============ ADMIN STYLES ============ */

/* Page header avec bouton */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h1 {
    margin: 0;
    color: #f1f5f9;
}

.clear-db-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

.clear-db-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.clear-db-btn:active {
    transform: translateY(0);
}

/* Admin pages */
.admin-page {
    padding: 24px;
}

.admin-page h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #f1f5f9;
}

/* États d'erreur améliorés */
.error-container {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.error-container.auth-error {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.error-message {
    color: #fca5a5;
    font-size: 16px;
    margin-bottom: 8px;
}

.auth-error .error-message {
    color: #fcd34d;
}

.error-hint {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 12px;
}

.error-hint a {
    color: #60a5fa;
    text-decoration: none;
}

.error-hint a:hover {
    text-decoration: underline;
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state h3 {
    color: #f1f5f9;
    font-size: 24px;
    margin-bottom: 12px;
}

.empty-state p {
    color: #94a3b8;
    margin-bottom: 8px;
    line-height: 1.5;
}

.empty-hint {
    color: #64748b;
    font-style: italic;
    font-size: 14px;
}

/* Collections container */
.collections-container {
    display: grid;
    gap: 20px;
}

.collection-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.collection-name {
    font-size: 18px;
    font-weight: 600;
    color: #60a5fa;
}

.collection-count {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.collection-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.collection-table th,
.collection-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.collection-table th {
    color: #94a3b8;
    font-weight: 500;
    font-size: 14px;
}

.collection-table td {
    color: #e2e8f0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-section {
        padding: 24px;
        margin-bottom: 24px;
    }

    .welcome-section h2 {
        font-size: 24px;
    }

    .connection-status {
        padding: 24px;
    }

    .channel-info {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .connected-actions {
        flex-direction: column;
        align-items: center;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .clear-db-btn {
        align-self: flex-start;
    }
}

/* Bouton test API */
.test-api-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 0 10px;
}

.test-api-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.test-api-btn:active {
    transform: translateY(0);
}

/* Bouton déconnexion forcée */
.force-disconnect-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 0 10px;
}

.force-disconnect-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.force-disconnect-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .force-disconnect-btn {
        margin: 5px 0;
        padding: 10px 15px;
        font-size: 13px;
    }
}
