/* Saved Maps Panel & Dialogs */

.liveage-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10010;
}

.liveage-dialog {
    background: #1A1B1B;
    border: 1px solid #41ffd2;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.liveage-dialog-small {
    max-width: 400px;
}

.liveage-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(65, 255, 210, 0.3);
}

.liveage-dialog-header h3 {
    margin: 0;
    color: #41ffd2;
    font-size: 18px;
    font-weight: 400;
}

.liveage-dialog-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.liveage-dialog-close:hover {
    color: #41ffd2;
}

.liveage-dialog-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.liveage-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid rgba(65, 255, 210, 0.3);
}

.liveage-dialog-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 10px 0 0 0;
}

.liveage-dialog-info strong {
    color: #41ffd2;
}

/* Form Elements */
.liveage-form-group {
    margin-bottom: 15px;
}

.liveage-form-group label {
    display: block;
    color: #41ffd2;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.liveage-form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(65, 255, 210, 0.3);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.liveage-form-group input[type="text"]:focus {
    outline: none;
    border-color: #41ffd2;
}

.liveage-link-copy {
    display: flex;
    gap: 10px;
}

.liveage-link-copy input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(65, 255, 210, 0.3);
    color: #fff;
    font-size: 13px;
    font-family: monospace;
}

/* Buttons */
.liveage-btn {
    padding: 10px 20px;
    background: transparent;
    color: #41ffd2;
    border: 1px solid #41ffd2;
    font-size: 12px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.liveage-btn:hover {
    background: #41ffd2;
    color: #000;
}

.liveage-btn-primary {
    background: rgba(65, 255, 210, 0.2);
}

.liveage-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.liveage-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.liveage-btn-small {
    padding: 6px 12px;
    font-size: 11px;
}

.liveage-btn-delete {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.liveage-btn-delete:hover {
    background: #ff6b6b;
    color: #000;
}

.liveage-btn-edit {
    background: rgba(65, 255, 210, 0.15);
}

.liveage-btn-rename {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
}

.liveage-btn-rename:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Maps Panel */
.liveage-maps-panel {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 450px;
    max-height: calc(100vh - 150px);
    background: #1A1B1B;
    border: 1px solid #41ffd2;
    z-index: 10005;
    display: flex;
    flex-direction: column;
}

.liveage-maps-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(65, 255, 210, 0.3);
}

.liveage-maps-panel-header h3 {
    margin: 0;
    color: #41ffd2;
    font-size: 18px;
    font-weight: 400;
}

.liveage-panel-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.liveage-panel-close:hover {
    color: #41ffd2;
}

.liveage-maps-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.liveage-maps-loading,
.liveage-maps-error,
.liveage-maps-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.liveage-maps-error {
    color: #ff6b6b;
}

/* Map Item */
.liveage-maps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.liveage-map-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(65, 255, 210, 0.2);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.liveage-map-item:hover {
    border-color: rgba(65, 255, 210, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

.liveage-map-item-info {
    margin-bottom: 10px;
}

.liveage-map-item-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.liveage-map-item-meta {
    display: flex;
    gap: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.liveage-map-item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.liveage-map-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* My Maps button in menu */
#myMapsBtn {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .liveage-maps-panel {
        top: 20px;
        right: 20px;
        left: 20px;
        width: auto;
        max-height: calc(100vh - 100px);
    }

    .liveage-dialog {
        width: 95%;
        margin: 10px;
    }

    .liveage-map-item-actions {
        flex-direction: column;
    }

    .liveage-map-item-actions .liveage-btn {
        width: 100%;
        text-align: center;
    }
}
