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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: #363636;
    min-height: 100vh;
    color: hsl(69, 93%, 71%);
}
ul {
    padding-left: 2em;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
.header {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

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

.header-title {
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-subtitle {
    font-size: 14px;
    color: #94a3b8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logout-btn {
    /* background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3); */
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.3);
    border-radius: 8px;
    padding: 10px;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.logout-btn:hover {
    background: rgba(156, 163, 175, 0.2);
    border: 1px solid rgba(156, 163, 175, 0.4);
    color: #d1d5db;
}

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

.logout-btn i {
    font-size: 16px;
}

.sync-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: #4ade80;
}

.sync-status.syncing .sync-indicator {
    animation: pulse 2s infinite;
}

.sync-status .sync-title-syncing {
    display: none;
}

.sync-status .sync-title-synchronized {
    display: inline;
}

.sync-status.syncing .sync-title-syncing {
    display: inline;
}

.sync-status.syncing .sync-title-synchronized {
    display: none;
}

.sync-indicator {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
}

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

.last-sync {
    font-size: 12px;
    color: #64748b;
}

/* Filters Section */
.filters {
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input {
    padding: 8px 12px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 14px;
    transition: all 0.2s;
    width: 140px;
}

.filter-input:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1);
}

/* Table Section */
.table-container {
    background: rgba(26, 26, 26, 0.6);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

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

thead {
    background: rgba(10, 10, 10, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    padding: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    /* transition: all 0.2s; */
    cursor: pointer;
}

tbody tr:not(.recommendations):hover {
    background: rgba(255, 255, 255, 0.03);
}

tbody tr.expanded {
    background: rgba(255, 255, 255, 0.05);
}

td {
    padding: 16px;
    font-size: 14px;
    color: #e2e8f0;
}

.platform-name {
    font-weight: 600;
    color: #d1d5db;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-name:hover {
    color: #8eb2f9;
}

.platform-name div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.platform-name div span {
    display: flex;
    gap: 4px;
}


.version-badge {
    position: relative;
    padding: 4px 10px;
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.3);
    border-radius: 12px;
    font-size: 12px;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #d1d5db;
    max-width: 110px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.version-badge.outdated {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: rgb(252, 165, 165);
}

.version-badge.not-up-to-date {
    color: #d9f054;
}

.version-badge.up-to-date {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}


.comment-input {
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 10px;
    color: #e2e8f0;
    font-size: 13px;
    width: 100%;
    transition: all 0.2s;
}

.comment-input:focus {
    outline: none;
    border-color: #9ca3af;
    background: rgba(10, 10, 10, 0.8);
}

/* Recommendations Panel */
.recommendations {
    background: rgba(10, 10, 10, 0.4);
    padding: 20px;
    display: none;
    cursor: unset;
}

.recommendations.show {
    display: block;
    /* animation: slideDown 0.3s ease-out; */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.recommendation-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
}

.recommendation-card.notfound,
.recommendation-card.outdated {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.05);
}

.recommendation-card.next-patch {
    border-color: rgba(217, 240, 86, 0.5);
    background: rgba(217, 240, 86, 0.05);
}

.recommendation-card.warning {
    border-color: rgba(251, 146, 60, 0.5);
    background: rgba(251, 146, 60, 0.05);
}

.recommendation-card.success {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.05);
}

.recommendation-title {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-text {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.status-icon {
    width: 16px;
    height: 16px;
}

/* Action Buttons */
.action-btn {
    padding: 6px 12px;
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.3);
    border-radius: 6px;
    color: #d1d5db;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(156, 163, 175, 0.2);
    transform: translateY(-1px);
}

/* Styles pour le sélecteur d'assigné */
.assignee-select {
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
    color: #e5e7eb;
    cursor: pointer;
    min-width: 120px;
    transition: border-color 0.2s;
}

.assignee-select:hover {
    border-color: #9ca3af;
}

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

.assignee {
    display: flex;
    align-items: center;
    gap: 8px;
}

.assignee-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .filters {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 800px;
    }
}

/* Styles pour les tooltips JavaScript */
.custom-tooltip {
    position: absolute;
    bottom: 70%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Monaco', 'Courier New', monospace;
    white-space: nowrap;
    z-index: 9999;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}


/* Styles pour les messages de commentaire */
.comment-input {
    position: relative;
}

.popover-error,
.popover-success {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    font-size: 12px;
    padding: 4px 8px;
    margin-top: 4px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.popover-error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.popover-success {
    color: #059669;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

/* Checkboxes agrandis */
.decommission-checkbox,
.deletion-checkbox {
    transform: scale(1.5);
    cursor: pointer;
}

/* Colonne commentaire */
th:nth-child(7),
td:nth-child(7) {
    width: 300px;
    min-width: 300px;
}

/* Colonne décommission */
th:nth-child(8),
td:nth-child(8) {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    text-align: center;
}

/* Titre colonne décommission */
th:nth-child(8) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}