/* Shared modal / confirm dialog styles for AccessHub */

.ah-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.55);
}

.ah-modal {
    width: 100%;
    max-width: 28rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
    padding: 1.15rem 1.25rem 1.25rem;
}

.dark .ah-modal {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgb(15, 23, 42);
}

.ah-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.ah-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: rgb(15, 23, 42);
}

.dark .ah-modal-header h3 {
    color: rgb(248, 250, 252);
}

.ah-confirm-message {
    margin: 0.4rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgb(71, 85, 105);
}

.dark .ah-confirm-message {
    color: rgb(148, 163, 184);
}

.ah-modal-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    width: 2rem;
    padding: 0;
    border: 1px solid rgb(226, 232, 240);
    border-radius: 0.55rem;
    background: rgb(248, 250, 252);
    color: rgb(51, 65, 85);
    font-size: 0.85rem;
    cursor: pointer;
}

.ah-modal-close:hover {
    background: rgb(241, 245, 249);
}

.dark .ah-modal-close {
    border-color: rgb(51, 65, 85);
    background: rgb(30, 41, 59);
    color: rgb(226, 232, 240);
}

.ah-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.ah-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    padding: 0 0.95rem;
    border-radius: 0.65rem;
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.ah-btn-secondary {
    border-color: rgb(226, 232, 240);
    background: #fff;
    color: rgb(51, 65, 85);
}

.ah-btn-secondary:hover {
    background: rgb(248, 250, 252);
}

.dark .ah-btn-secondary {
    border-color: rgb(51, 65, 85);
    background: rgb(30, 41, 59);
    color: rgb(226, 232, 240);
}

.ah-btn-primary {
    background: rgb(13, 148, 136);
    color: #fff;
}

.ah-btn-primary:hover {
    background: rgb(15, 118, 110);
}

.ah-btn-danger {
    background: rgb(220, 38, 38);
    color: #fff;
}

.ah-btn-danger:hover {
    background: rgb(185, 28, 28);
}
