* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #e9f0f5;
    padding: 20px;
    color: #1e2a3a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    flex: 1;
}

/* Cabecera con logo */
.header {
    margin-bottom: 28px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.header-text h1 {
    font-size: 1.8rem;
    color: #2c3e50;
}

.header-text p {
    color: #5d6e7e;
    font-size: 0.9rem;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
}

@media (max-width: 480px) {
    .header-logo {
        width: 48px;
        height: 48px;
    }
    .header-text h1 {
        font-size: 1.4rem;
    }
}

.add-room {
    background: #f8fafc;
    padding: 20px;
    border-radius: 24px;
    margin-bottom: 28px;
}

.add-room h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

#roomName {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-size: 1rem;
    margin-bottom: 16px;
}

.orientation-selector label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.orientation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.orientation-buttons button {
    background: #e2e8f0;
    border: none;
    padding: 8px 14px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.orientation-buttons button.selected {
    background: #2c3e50;
    color: white;
}

.compass-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    margin-bottom: 12px;
}

.compass-result {
    background: #dbeafe;
    padding: 10px;
    border-radius: 16px;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: none;
}

.location-box {
    margin-bottom: 16px;
}

.location-box label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

#location {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-size: 1rem;
    margin-bottom: 6px;
}

.location-box small {
    color: #5d6e7e;
    font-size: 0.75rem;
}

.add-btn, .report-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    margin-top: 8px;
}

.report-btn {
    background: #8b5cf6;
    margin-top: 20px;
}

.rooms-list {
    margin-top: 20px;
}

.rooms-list ul {
    list-style: none;
    margin-top: 12px;
}

.rooms-list li {
    background: #f1f5f9;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delete-room {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.8rem;
}

.report {
    margin-top: 28px;
    background: #fef9e3;
    padding: 20px;
    border-radius: 24px;
    display: none;
    border-left: 6px solid #f59e0b;
}

.report h3 {
    margin-bottom: 12px;
    color: #b45309;
}

.report p {
    margin-bottom: 10px;
    line-height: 1.4;
}

.report ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.footer {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    color: black;
    font-size: 0.8rem;
    border-top: 1px solid #e2e8f0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
}