/**
 * Forfait Suivi Satellite - Frontend Styles
 */

/* Container */
.fss-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.fss-header {
    text-align: center;
    margin-bottom: 40px;
}

.fss-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #23282d;
}

.fss-subtitle {
    color: #666;
    font-size: 16px;
}

/* Notices */
.fss-notice {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.fss-notice.fss-warning {
    background: #fff8e5;
    border-left: 4px solid #f56e28;
}

.fss-notice.fss-error {
    background: #fef1f1;
    border-left: 4px solid #dc3232;
}

.fss-notice.fss-info {
    background: #e5f5fa;
    border-left: 4px solid #00a0d2;
}

.fss-notice p {
    margin: 0;
}

.fss-notice a {
    color: #0073aa;
    text-decoration: underline;
}

/* Cards Layout */
.fss-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.fss-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.fss-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.fss-card.fss-status-danger {
    border-left: 4px solid #dc3232;
}

.fss-card.fss-status-warning {
    border-left: 4px solid #f56e28;
}

.fss-card.fss-status-ok {
    border-left: 4px solid #46b450;
}

.fss-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.fss-card-header h3 {
    margin: 0;
    font-size: 20px;
    color: #23282d;
}

.fss-status-icon {
    font-size: 24px;
}

.fss-card-body {
    padding: 20px;
}

.fss-description {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.fss-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.fss-stat {
    text-align: center;
    padding: 15px 10px;
    background: #f9f9f9;
    border-radius: 6px;
}

.fss-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.fss-stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #23282d;
}

.fss-stat-value.ok {
    color: #46b450;
}

.fss-stat-value.warning {
    color: #f56e28;
}

.fss-stat-value.danger {
    color: #dc3232;
}

.fss-card-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 13px;
}

/* Tasks Toggle */
.fss-tasks-toggle {
    margin-top: 20px;
}

.fss-btn-toggle-tasks {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    transition: background 0.2s;
}

.fss-btn-toggle-tasks:hover {
    background: #005a87;
}

.fss-tasks-list {
    margin-top: 15px;
}

.fss-loading {
    text-align: center;
    color: #666;
    font-style: italic;
}

.fss-tasks-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.fss-tasks-table thead {
    background: #f9f9f9;
}

.fss-tasks-table th,
.fss-tasks-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.fss-tasks-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    color: #666;
}

.fss-task-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.fss-task-badge.active {
    background: #d1f0d4;
    color: #2e7d32;
}

.fss-task-badge.historical {
    background: #ffebee;
    color: #c62828;
}

.fss-task-badge.reload {
    background: #e3f2fd;
    color: #1565c0;
}

/* Table Layout */
.fss-table-wrapper {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fss-table {
    width: 100%;
    border-collapse: collapse;
}

.fss-table thead {
    background: #f9f9f9;
}

.fss-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    color: #23282d;
}

.fss-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.fss-table tbody tr:hover {
    background: #f9f9f9;
}

.fss-table .fss-time {
    font-weight: 600;
    font-size: 16px;
}

.fss-table .fss-time.ok {
    color: #46b450;
}

.fss-table .fss-time.warning {
    color: #f56e28;
}

.fss-table .fss-time.danger {
    color: #dc3232;
}

.fss-table .fss-status {
    text-align: center;
    font-size: 20px;
}

/* Legend */
.fss-legend {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
}

.fss-legend h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
}

.fss-legend-items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.fss-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.fss-legend-icon {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .fss-cards-grid {
        grid-template-columns: 1fr;
    }

    .fss-table-wrapper {
        overflow-x: auto;
    }

    .fss-legend-items {
        flex-direction: column;
        gap: 10px;
    }

    .fss-stats {
        grid-template-columns: 1fr;
    }
}
