/* Triggers Modal Styles */
#modal-triggers {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    /* High z-index to be on top */
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.triggers-modal {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.triggers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.trigger-btn {
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 10px 5px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.trigger-btn:hover {
    background: #eef2ff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.trigger-icon {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.trigger-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

.btn-close-modal {
    margin-top: 25px;
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    width: 60%;
}

.btn-close-modal:active {
    transform: scale(0.95);
    background: #d0d0d0;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .triggers-modal {
        background: #1a1a1a;
        color: white;
    }

    .trigger-btn {
        background: #333;
    }

    .trigger-label {
        color: #eee;
    }

    .trigger-btn:hover {
        background: #444;
    }

    #modal-triggers {
        background: rgba(0, 0, 0, 0.7);
    }
}