h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.floor-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.floor-controls button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.floor-controls button:hover {
    background-color: #45a049;
}

.map-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.room-info-panel {
    width: 300px;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.room-info-panel h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.save-button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

.save-button:hover {
    background-color: #45a049;
}

.info-row {
    margin-bottom: 15px;
}

.info-row label {
    font-weight: bold;
    color: #666;
    display: inline-block;
    width: 100px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.resources-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.resource-item {
    background-color: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* Estilos SVG */
.room {
    fill: #e9ecef;
    stroke: #666;
    stroke-width: 1;
    cursor: pointer;
    transition: fill 0.3s;
}

.room:hover {
    fill: #4CAF50;
    fill-opacity: 0.5;
}

.room.selected {
    fill: #4CAF50;
    fill-opacity: 0.7;
}

.corridor {
    fill: #f8f9fa;
    stroke: #666;
    stroke-width: 1;
}

.stairs {
    fill: #dee2e6;
    stroke: #666;
    stroke-width: 1;
}

.room-label {
    font-size: 12px;
    fill: #333;
    text-anchor: middle;
    pointer-events: none;
}

/* Status colors */
.status-disponivel { background-color: #28a745; color: white; }
.status-ocupada { background-color: #dc3545; color: white; }
.status-manutencao { background-color: #ffc107; color: black; }
.status-reservada { background-color: #17a2b8; color: white; }
.status-restrito { background-color: #6c757d; color: white; }

/* Estilos para os status */
.status-active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-completed {
    background-color: #e3f2fd;
    color: #1565c0;
}

.status-canceled {
    background-color: #ffebee;
    color: #c62828;
}

#room-info {
    width: 300px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Controles do Mapa */
.map-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.map-controls select,
.map-controls button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.map-controls button:hover {
    background-color: #f0f0f0;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 4px;
    color: #fff;
    z-index: 1100;
    animation: fadeIn 0.3s ease-in;
}

.toast.success {
    background-color: #4caf50;
}

.toast.error {
    background-color: #f44336;
}

.toast.info {
    background-color: #2196f3;
}

.toast.warning {
    background-color: #ff9800;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

/* Estilos do SVG e Mapa */
.map-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.map-controls select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

/* Estilos das Salas no Mapa */
.room {
    cursor: pointer;
    transition: all 0.3s ease;
    fill: #ffffff;
    stroke: #333;
    stroke-width: 1;
}

.room:hover {
    fill: #e3f2fd;
    stroke: #1976d2;
    stroke-width: 2;
    filter: drop-shadow(0 0 3px rgba(25, 118, 210, 0.3));
}

.room.selected {
    fill: #bbdefb;
    stroke: #1565c0;
    stroke-width: 2;
    filter: drop-shadow(0 0 5px rgba(25, 118, 210, 0.5));
}

.room-label {
    pointer-events: none;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 12px;
    fill: #333;
    transition: all 0.3s ease;
}

.room:hover .room-label,
.room.selected .room-label {
    fill: #1565c0;
    font-weight: bold;
}

/* Estilos do Corredor e Escadas */
.corridor {
    fill: #333;
}

.stairs {
    fill: #4d4d4d;
}

.stairs line {
    stroke: #fff;
    stroke-width: 1;
}

/* Painel de Informações */
#room-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

#room-info strong {
    color: #333;
    display: inline-block;
    width: 100px;
}

/* Botões de Ação */
.map-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.map-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.map-actions button.save {
    background: #4caf50;
    color: white;
}

.map-actions button.cancel {
    background: #f44336;
    color: white;
}

.map-actions button:hover {
    opacity: 0.9;
}

/* Responsividade */
@media (max-width: 768px) {
    .rooms-list {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group select {
        font-size: 14px;
    }

    .btn-cancel,
    .btn-save {
        padding: 8px 16px;
        font-size: 14px;
    }

    .map-container {
        padding: 10px;
    }
}

.btn-map {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.btn-map:hover {
    background-color: #45a049;
}

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

.actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.floor-selector {
    margin-bottom: 0;
    padding: 8px 35px 8px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    background-color: transparent;
    cursor: pointer;
    height: 40px;
    line-height: 24px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
}

.room-selector {
    margin-bottom: 15px;
}

.room-details {
    width: 100%;
    min-height: 100px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Estilos de Interação das Salas */
.room {
    cursor: pointer;
    transition: all 0.3s ease;
    fill: #ffffff;
    stroke: #333;
    stroke-width: 1;
}

.room:hover {
    fill: #e3f2fd;
    stroke: #1976d2;
    stroke-width: 2;
    filter: drop-shadow(0 0 3px rgba(25, 118, 210, 0.3));
}

.room.selected {
    fill: #bbdefb;
    stroke: #1565c0;
    stroke-width: 2;
    filter: drop-shadow(0 0 5px rgba(25, 118, 210, 0.5));
}

.room-label {
    pointer-events: none;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 12px;
    fill: #333;
    transition: all 0.3s ease;
}

.room:hover .room-label,
.room.selected .room-label {
    fill: #1565c0;
    font-weight: bold;
}

/* Estilos para o sistema de notificações toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 250px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-in-out forwards;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.toast.success {
    background-color: #4caf50;
}

.toast.error {
    background-color: #f44336;
}

.toast.info {
    background-color: #2196f3;
}

.toast.warning {
    background-color: #ff9800;
}

.toast-close {
    cursor: pointer;
    padding: 0 5px;
    font-weight: bold;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

#room-info-panel {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 10px;
    min-width: 300px;
}

#room-info-panel h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

#room-info-panel p {
    margin: 8px 0;
    color: #34495e;
}

#room-info-panel strong {
    color: #2c3e50;
}

#room-info-panel ul {
    list-style-type: none;
    padding-left: 20px;
    margin: 8px 0;
}

#room-info-panel li {
    color: #34495e;
    margin: 4px 0;
    position: relative;
}

#room-info-panel li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: -15px;
}

/* Estilos para botões */
.btn-primary {
    background-color: #1976d2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #1565c0;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Estilos para a lista de recursos */
.resources-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.resources-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.resources-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Estilos para os banheiros */
.banheiro {
    position: relative;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
}

.banheiro.masculino {
    border-color: #4285F4;
}

.banheiro.feminino {
    border-color: #DB4437;
}

.nome-banheiro {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    text-align: center;
}

/* Remover estilos antigos do ícone */
.icone-banheiro,
.banheiro::before {
    display: none !important;
}

.banheiro:hover {
    background-color: #e9ecef;
    transform: scale(1.02);
}

.banheiro .pop-up {
    display: none;
    position: absolute;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
}

.banheiro:hover .pop-up {
    display: block;
} 