.glass-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: modal-fade-in 0.3s ease-out;
}

.glass-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    animation: modal-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease-in-out;
}

.glass-modal-close-btn:hover {
    background: rgba(220, 38, 38, 0.5);
    color: white;
    transform: scale(1.1) rotate(90deg);
}

.glass-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.glass-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.glass-modal-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.glass-modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    color: white;
    flex-grow: 1;
}

.glass-modal-body::-webkit-scrollbar { width: 8px; }
.glass-modal-body::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
.glass-modal-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 4px; }
.glass-modal-body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }

.enrollment-warning-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    background-color: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fefce8;
}

.enrollment-warning-note .warning-icon { flex-shrink: 0; color: #facc15; margin-top: 3px; }
.enrollment-warning-note p { font-size: 0.9rem; line-height: 1.5; }
.enrollment-warning-note strong { font-weight: 600; color: #fef08a; }

.loading-spinner { text-align: center; padding: 2rem 0; color: rgba(255, 255, 255, 0.8); }
.loading-spinner .spinner { width: 40px; height: 40px; border: 4px solid rgba(255, 255, 255, 0.2); border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem auto; }

.enrolled-faces-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.enrolled-face-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease-in-out;
}

.enrolled-face-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.face-info {
    display: flex;
    flex-direction: column;
}

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

.face-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Add a container for the buttons */
.face-actions {
    display: flex;
    gap: 0.5rem; /* Space between buttons */
}

.btn-open-location {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.375rem;
    background-color: transparent;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-open-location:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.btn-delete-face {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 0.375rem;
    background-color: rgba(220, 38, 38, 0.5);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-delete-face:hover {
    background-color: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.7);
    color: rgba(255, 0, 0, 1);
}