/* Styles pour la page Espaces */

.table-espaces {
    margin: 20px 0;
}

.table-espaces .table-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 15px;
    border-radius: 5px 5px 0 0;
}

.table-espaces .table-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #495057;
    margin: 0;
}

.table-espaces .table-content {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-espaces .table-row {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
}

.table-espaces .table-row:hover {
    background-color: #f8f9fa;
}

.table-espaces .table-row:last-child {
    border-bottom: none;
}

.table-espaces .table-cell {
    padding: 12px 15px;
    vertical-align: middle;
}

.table-espaces .domain-cell {
    font-weight: 500;
    color: #495057;
}

.table-espaces .number-cell {
    text-align: center;
    font-weight: bold;
    color: #007bff;
}

.table-espaces .datetime-cell {
    color: #6c757d;
    font-size: 0.9em;
}

/* Styles pour les boutons d'action */
.action-buttons {
    display: flex;
    gap: 5px;
}

.action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8em;
    transition: background-color 0.2s ease;
}

.action-btn.view {
    background-color: #17a2b8;
    color: white;
}

.action-btn.view:hover {
    background-color: #138496;
}

.action-btn.edit {
    background-color: #ffc107;
    color: #212529;
}

.action-btn.edit:hover {
    background-color: #e0a800;
}

.action-btn.delete {
    background-color: #dc3545;
    color: white;
}

.action-btn.delete:hover {
    background-color: #c82333;
}

/* Styles pour la pagination */
.pagination-espaces {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background-color: white;
    color: #495057;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.pagination-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

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

/* Styles pour la recherche */
.search-espaces {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.search-btn {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: #0056b3;
}

/* Styles responsifs */
@media (max-width: 768px) {
    .table-espaces {
        overflow-x: auto;
    }
    
    .table-espaces .table-cell {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    
    .search-espaces {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 2px;
    }
}
