/*AUTH*/
.login-card {
    max-width: 420px;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #444;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background-color: #2a2a3e;
    color: #aaa;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    min-height: 44px;
}
.auth-tab.active {
    background-color: #3259b1;
    color: white;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form button {
    width: 100%;
}

@media (max-width: 768px) {
    .login-card {
        max-width: 100%;
    }
}

/*MONITORED LOCATIONS*/
#monitored-locations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 769px) {
    #monitored-locations {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

.monitored-card {
    background-color: #1a1a30;
    border-radius: 10px;
    padding: 16px;
    position: relative;
}

.monitored-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.monitored-card-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.monitored-remove {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.4rem;
    padding: 4px 8px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.monitored-remove:hover { color: #e74c3c; }

.monitored-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 0.85rem;
}

.monitored-stat {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #2a2a3e;
}

.monitored-urgency {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}
.urgency-ok { background-color: #2ecc71; }
.urgency-warning { background-color: #e67e22; }
.urgency-danger { background-color: #c0392b; }

/*USER MAP*/
#user-map {
    height: 350px;
    border-radius: 8px;
    margin-top: 10px;
}

.user-map-label {
    background: rgba(26, 26, 48, 0.9);
    color: #fff;
    border: 1px solid #3259b1;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
#geo-notify-panel {
    margin-top: 12px;
    padding: 12px;
    background: #1a1a30;
    border-radius: 8px;
    border: 1px solid #3259b1;
}

#geo-notify-panel textarea {
    font-family: inherit;
    margin-top: 4px;
}

.user-map-label::before {
    border-top-color: #3259b1;
}

/*USER LOCATIONS*/
#user-locations-list {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 769px) {
    #user-locations-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

.user-location-time {
    color: #888;
    font-size: 0.8rem;
    white-space: nowrap;
}

/*LOCATION PROMPT*/
.location-prompt-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.location-prompt {
    max-width: 360px;
    width: 100%;
    text-align: center;
}

.location-prompt h3 {
    margin-bottom: 8px;
}

/*BROADCAST*/
.broadcast-form textarea {
    font-family: inherit;
}

/*WARNINGS*/
.warning-item {
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 4px solid #e74c3c;
    background-color: #1a1a30;
}

.warning-event {
    font-weight: 600;
    margin-bottom: 4px;
}

.warning-location {
    font-size: 0.85rem;
    color: #aaa;
}
